fix(ci): Remove internet-dependent rust/sccache installation steps
Some checks failed
BotUI CI / build (push) Failing after 0s
Some checks failed
BotUI CI / build (push) Failing after 0s
- alm-ci has Rust and tools pre-installed offline - Remove sccache/cargo cache environment variables - Remove sccache server startup and cache directory creation
This commit is contained in:
parent
8be2fb4577
commit
1010732f01
1 changed files with 0 additions and 16 deletions
|
|
@ -9,9 +9,6 @@ on:
|
||||||
env:
|
env:
|
||||||
CARGO_BUILD_JOBS: 6
|
CARGO_BUILD_JOBS: 6
|
||||||
CARGO_NET_RETRY: 10
|
CARGO_NET_RETRY: 10
|
||||||
SCCACHE_DIR: /opt/gbo/cache/sccache
|
|
||||||
RUSTC_WRAPPER: sccache
|
|
||||||
CARGO_HOME: /opt/gbo/cache/cargo
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -33,8 +30,6 @@ jobs:
|
||||||
- name: Setup Workspace
|
- name: Setup Workspace
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /opt/gbo/ci/botui
|
mkdir -p /opt/gbo/ci/botui
|
||||||
mkdir -p $SCCACHE_DIR
|
|
||||||
mkdir -p $CARGO_HOME/registry
|
|
||||||
# Clone the main gb repository
|
# Clone the main gb repository
|
||||||
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git /opt/gbo/ci/botui/workspace
|
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git /opt/gbo/ci/botui/workspace
|
||||||
cd /opt/gbo/ci/botui/workspace
|
cd /opt/gbo/ci/botui/workspace
|
||||||
|
|
@ -53,16 +48,6 @@ jobs:
|
||||||
sed -i '/"botplugin",/d' Cargo.toml
|
sed -i '/"botplugin",/d' Cargo.toml
|
||||||
sed -i '/"bottemplates",/d' Cargo.toml
|
sed -i '/"bottemplates",/d' Cargo.toml
|
||||||
|
|
||||||
- name: Setup PATH for globally installed tools
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
||||||
echo "/usr/local/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Start sccache server
|
|
||||||
run: |
|
|
||||||
sccache --start-server || true
|
|
||||||
sccache --show-stats || true
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
@ -76,7 +61,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cargo build --release -p botui --features embed-ui -j 8 2>&1 | tee /tmp/build.log
|
cargo build --release -p botui --features embed-ui -j 8 2>&1 | tee /tmp/build.log
|
||||||
ls -lh target/release/botui
|
ls -lh target/release/botui
|
||||||
sccache --show-stats || true
|
|
||||||
|
|
||||||
- name: Save build log
|
- name: Save build log
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue