Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tornax O7
relibc
Commits
456c829d
Verified
Commit
456c829d
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix CI
parent
50be35d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-29
10 additions, 29 deletions
.gitlab-ci.yml
with
10 additions
and
29 deletions
.gitlab-ci.yml
+
10
−
29
View file @
456c829d
image
:
"
r
ustlang/rust:nightly
"
image
:
"
r
edoxos/redoxer:latest
"
stages
:
-
build
-
test
before_script
:
-
apt-get update -qq
-
apt-get install -qq git
-
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
:
paths
:
-
target/
# Redox only:
-
prefix/
-
rust/
build:linux
:
stage
:
build
script
:
-
make all
-
rustup toolchain add "$(cat rust-toolchain)"
-
rustup show
# Print version info for debugging
-
make -j "$(nproc)" all
build:redox
:
stage
:
build
variables
:
TARGET
:
x86_64-unknown-redox
script
:
# Install the Redox OS toolchain
## (This can't be in before_script because that overrides
## the global before_script.)
-
apt-get update -qq
-
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
-
export RUSTUP_TOOLCHAIN="$HOME/.redoxer/toolchain"
-
export PATH="$RUSTUP_TOOLCHAIN/bin:$PATH"
-
rustup show
# Print version info for debugging
-
make -j "$(nproc)" all
test:linux
:
stage
:
test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment