Remove sccache

This commit is contained in:
Nicolas Patry 2024-09-11 12:43:41 +02:00
parent 0699faf46e
commit 1d3d655ac8
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -47,28 +47,28 @@ jobs:
run: | run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Install sccache # - name: Install sccache
run: | # run: |
curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache # curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache
chmod +x /usr/local/bin/sccache # chmod +x /usr/local/bin/sccache
- name: configure sccache # - name: configure sccache
uses: actions/github-script@v6 # uses: actions/github-script@v6
with: # with:
script: | # script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); # core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); # core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
core.exportVariable('SCCACHE_GHA_CACHE_TO', 'sccache-${{runner.os}}-${{github.ref_name}}'); # core.exportVariable('SCCACHE_GHA_CACHE_TO', 'sccache-${{runner.os}}-${{github.ref_name}}');
core.exportVariable('SCCACHE_GHA_CACHE_FROM', 'sccache-${{runner.os}}-main,sccache-${{runner.os}}-'); # core.exportVariable('SCCACHE_GHA_CACHE_FROM', 'sccache-${{runner.os}}-main,sccache-${{runner.os}}-');
- name: cargo registry cache # - name: cargo registry cache
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }} # key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
restore-keys: | # restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}- # cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}- # cargo-${{ runner.os }}-
path: | # path: |
~/.cargo/registry # ~/.cargo/registry
~/.cargo/git # ~/.cargo/git
- name: Install - name: Install
run: | run: |
make install-cpu make install-cpu
@ -88,6 +88,6 @@ jobs:
echo $LD_LIBRARY_PATH echo $LD_LIBRARY_PATH
ls ${{ env.pythonLocation }}/lib/ ls ${{ env.pythonLocation }}/lib/
cargo test cargo test
- name: sccache stats # - name: sccache stats
run: | # run: |
/usr/local/bin/sccache --show-stats # /usr/local/bin/sccache --show-stats