image: "redoxos/redoxer:latest" variables: GIT_SUBMODULE_STRATEGY: recursive workflow: rules: - if: '$CI_COMMIT_BRANCH == "master" && $CI_PROJECT_NAMESPACE == "redox-os"' - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"' stages: - build - cross-build - test before_script: cargo install cbindgen fmt: stage: build needs: [] script: - rustup component add rustfmt-preview - ./fmt.sh -- --check linux: stage: build script: - ./check.sh --host x86_64: stage: build script: - ./check.sh --arch=x86_64 i586: stage: cross-build script: - ./check.sh --arch=i586 aarch64: stage: cross-build image: "redoxos/redoxer:aarch64" script: - ./check.sh --arch=aarch64 riscv64gc: stage: cross-build script: - ./check.sh --arch=riscv64gc test:linux: stage: test needs: [linux] script: - ./check.sh --host --test test:x86_64: stage: test needs: [x86_64] script: # timeout: https://gitlab.redox-os.org/redox-os/relibc/-/issues/238 - timeout -s KILL 9m ./check.sh --arch=x86_64 --test test:aarch64: stage: test needs: [aarch64] image: "redoxos/redoxer:aarch64" # many issues that not exist in x86_64, and lack of interest to fix so far allow_failure: true script: - timeout -s KILL 9m ./check.sh --arch=aarch64 --test #TODO: Enable more arch once dynamic linker working