CI: disable usage of sccache if env variables not setted
@@ -185,11 +185,11 @@ jobs:
cd $GITHUB_WORKSPACE
cp workspace.Cargo.toml Cargo.toml
python -c "fin = open('Cargo.toml', 'r'); res = fin.read().replace('debug = true', '').replace('incremental = true', ''); fin.close(); fout = open('Cargo.toml', 'w'); fout.write(res + '\n'); fout.close();"
- export RUSTC_WRAPPER=`which sccache`
+ test -z "$SCCACHE_ENDPOINT" || export RUSTC_WRAPPER=`which sccache`
echo "SCCACHE_BUCKET: $SCCACHE_BUCKET"
- sccache --start-server
+ test -z "$SCCACHE_ENDPOINT" || sccache --start-server
python ci_build_and_test.py --skip-android-tests
- sccache -s
+ test -z "$SCCACHE_ENDPOINT" || sccache -s
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S_AWS_ACCESS_KEY_ID }}
