Files
RedBear-OS/.gitlab-ci.yml
T
2024-01-11 13:08:06 +00:00

59 lines
1.0 KiB
YAML

image: "redoxos/redoxer:latest"
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
before_script:
cargo install cbindgen
default:
cache:
paths:
- target/
build:linux:
stage: build
script:
- rustup show # Ensure correct toolchain is downloaded and installed
- make -j "$(nproc)" all
build:redox:
stage: build
variables:
TARGET: x86_64-unknown-redox
script:
- ./redoxer.sh -j "$(nproc)" all
test:linux:
stage: test
needs:
- build:linux
dependencies:
- build:linux
script:
- make test
#TODO: fix redoxer exec hangs
# test:redox:
# stage: test
# needs:
# - build:redox
# dependencies:
# - build:redox
# variables:
# TARGET: x86_64-unknown-redox
# script:
# - ./redoxer.sh test
# # TODO: Out of memory
# allow_failure: true
fmt:
stage: test
needs: []
script:
- rustup component add rustfmt-preview
- ./fmt.sh -- --check