Skip to content

Commit

Permalink
ci: update sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Dec 1, 2021
1 parent 475f536 commit 5c5ac33
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pyoxidizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/cache@v2
with:
path: C:/Rust/.cargo/bin/sccache.exe
key: ${{ runner.os }}-sccache-0
key: ${{ runner.os }}-sccache-0.2.15-0

- name: Install sccache build dependencies (Windows)
if: runner.os == 'Windows' && steps.cache-sccache-windows.outputs.cache-hit != 'true'
Expand All @@ -73,23 +73,23 @@ jobs:
- name: Install sccache (Linux)
if: runner.os == 'Linux'
run: |
wget -O sccache.tar.gz --progress dot:mega https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz
wget -O sccache.tar.gz --progress dot:mega https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz
tar -xvzf sccache.tar.gz
mv sccache-0.2.13-x86_64-unknown-linux-musl/sccache /usr/share/rust/.cargo/bin/sccache
mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/share/rust/.cargo/bin/sccache
chmod +x /usr/share/rust/.cargo/bin/sccache
- name: Install sccache (macOS)
if: runner.os == 'macOS'
run: |
wget -O sccache.tar.gz --progress dot:mega https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-apple-darwin.tar.gz
wget -O sccache.tar.gz --progress dot:mega https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-apple-darwin.tar.gz
tar -xvzf sccache.tar.gz
mv sccache-0.2.13-x86_64-apple-darwin/sccache /Users/runner/.cargo/bin/sccache
mv sccache-v0.2.15-x86_64-apple-darwin/sccache /Users/runner/.cargo/bin/sccache
chmod +x /Users/runner/.cargo/bin/sccache
- name: Install sccache (Windows)
if: steps.cache-sccache-windows.outputs.cache-hit != 'true' && runner.os == 'Windows'
# sccache doesn't work with Rust 1.48. https://github.com/mozilla/sccache/issues/887
run: |
rustup install 1.47.0
cargo +1.47.0 install --features 'azure s3' sccache
cargo install --features 's3' --version 0.2.15 sccache
- name: Start sccache
run: |
Expand Down

0 comments on commit 5c5ac33

Please sign in to comment.