Skip to content
Snippets Groups Projects
Verified Commit 456c829d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix CI

parent 50be35d1
No related branches found
No related tags found
No related merge requests found
Pipeline #4990 failed
image: "rustlang/rust:nightly" image: "redoxos/redoxer:latest"
stages: stages:
- build - build
- test - test
before_script: before_script:
- apt-get update -qq
- apt-get install -qq git
- git submodule update --init --recursive - git submodule update --init --recursive
- rustup toolchain add "$(cat rust-toolchain)"
- rustup target add x86_64-unknown-redox --toolchain "$(cat rust-toolchain)"
- rustup show # Print version info for debugging
cache: cache:
paths: paths:
- target/ - target/
# Redox only:
- prefix/
- rust/
build:linux: build:linux:
stage: build stage: build
script: script:
- make all - rustup toolchain add "$(cat rust-toolchain)"
- rustup show # Print version info for debugging
- make -j "$(nproc)" all
build:redox: build:redox:
stage: build stage: build
variables: variables:
TARGET: x86_64-unknown-redox TARGET: x86_64-unknown-redox
script: script:
# Install the Redox OS toolchain - export RUSTUP_TOOLCHAIN="$HOME/.redoxer/toolchain"
## (This can't be in before_script because that overrides - export PATH="$RUSTUP_TOOLCHAIN/bin:$PATH"
## the global before_script.) - rustup show # Print version info for debugging
- apt-get update -qq - make -j "$(nproc)" all
- apt-get install -qq tar
- '[ -e "prefix" ] || (mkdir prefix && wget -O - https://static.redox-os.org/toolchain/x86_64-unknown-redox/gcc-install.tar.gz |
tar --extract --gzip --directory prefix)'
- export PATH="$PWD/prefix/bin:$PATH"
- export RUSTUP_TOOLCHAIN="$PWD/prefix"
# Prepare xargo
- cargo install xargo
- '[ -e "rust" ] || git clone -b redox-2019-04-06 "https://gitlab.redox-os.org/redox-os/rust" --recursive'
- export CARGO=xargo
- export XARGO_HOME="$PWD/build/xargo"
- export XARGO_RUST_SRC="$PWD/rust/src"
# Main script
- make -j `nproc` headers
- make -j `nproc` install-headers DESTDIR="$PWD/prefix/$TARGET"
- make -j `nproc` all
test:linux: test:linux:
stage: test stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment