fix(ci): Remove internet-dependent rust/sccache installation steps
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
- alm-ci has Rust and tools pre-installed offline - Remove sccache download from GitHub releases - Remove sccache server startup and stats display
This commit is contained in:
parent
3da26f497c
commit
e3faf7711c
1 changed files with 0 additions and 16 deletions
|
|
@ -61,27 +61,11 @@ jobs:
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get install -y libpq-dev libssl-dev liblzma-dev pkg-config
|
sudo apt-get install -y libpq-dev libssl-dev liblzma-dev pkg-config
|
||||||
|
|
||||||
- name: Setup PATH for pre-installed tools
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
||||||
echo "/usr/local/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Build BotServer
|
|
||||||
if [ ! -f $HOME/.cargo/bin/sccache ]; then
|
|
||||||
wget -q https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz
|
|
||||||
tar xzf sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz
|
|
||||||
mv sccache-v0.8.2-x86_64-unknown-linux-musl/sccache $HOME/.cargo/bin/sccache
|
|
||||||
chmod +x $HOME/.cargo/bin/sccache
|
|
||||||
fi
|
|
||||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
|
||||||
$HOME/.cargo/bin/sccache --start-server || true
|
|
||||||
|
|
||||||
- name: Build BotServer
|
- name: Build BotServer
|
||||||
working-directory: /opt/gbo/ci/botserver
|
working-directory: /opt/gbo/ci/botserver
|
||||||
run: |
|
run: |
|
||||||
cargo build -p botserver --features chat -j 8 2>&1 | tee /tmp/build.log
|
cargo build -p botserver --features chat -j 8 2>&1 | tee /tmp/build.log
|
||||||
ls -lh target/debug/botserver
|
ls -lh target/debug/botserver
|
||||||
sccache --show-stats || true
|
|
||||||
|
|
||||||
- name: Save build log
|
- name: Save build log
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue