-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
133 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
stages: | ||
- audit | ||
- build | ||
image: ${REGISTRY}/parity-ci-linux:latest | ||
|
||
variables: | ||
GIT_STRATEGY: fetch | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
CI_SERVER_NAME: "GitLab CI" | ||
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}" | ||
CARGO_TARGET: x86_64-unknown-linux-gnu | ||
REGISTRY: registry.parity.io/parity/infrastructure/scripts | ||
|
||
cargo_audit: | ||
stage: audit | ||
script: | ||
- cargo audit | ||
tags: | ||
- linux-docker | ||
allow_failure: true | ||
|
||
cargo_remote_build: | ||
stage: build | ||
script: | ||
- cargo build --release | ||
tags: | ||
- linux-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
1 step | ||
nano /etc/profile | ||
export PATH=/usr/local/cargo/bin:$PATH | ||
export RUSTUP_HOME=/usr/local/rustup | ||
export CARGO_HOME=/usr/local/cargo | ||
2 install rust | ||
wget https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init | ||
chmod +x rustup-init; \ | ||
./rustup-init -y --no-modify-path --default-toolchain stable; \ | ||
rm rustup-init; \ | ||
chmod -R a+w+r /usr/local/cargo/; \ | ||
chmod -R a+w+r /usr/local/cargo/; \ | ||
rustup install nightly beta; \ | ||
rustup target add wasm32-unknown-unknown --toolchain nightly; \ | ||
cargo install cargo-audit --force; \ | ||
cargo install sccache --features redis --force; \ | ||
cargo install --git https://github.com/alexcrichton/wasm-gc --force ; | ||
3 redis | ||
protected mode no | ||
|
||
maxmemory 50gb | ||
maxmemory-policy allkeys-lru | ||
service redis restart | ||
3 setup sccache+redis | ||
nano /etc/profile | ||
export PATH=/usr/local/cargo/bin:$PATH | ||
export RUSTUP_HOME=/usr/local/rustup | ||
export CARGO_HOME=/usr/local/cargo | ||
export SCCACHE_IDLE_TIMEOUT=0 | ||
export SCCACHE_REDIS=redis://127.0.0.1/0 | ||
export RUSTC_WRAPPER=sccache | ||
4 user | ||
export PATH="$HOME/.cargo/bin:$PATH" | ||
export RUSTUP_HOME=$HOME/.rustup | ||
export CARGO_HOME=$HOME/.cargo | ||
|
||
rustup install stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters