Skip to content

Commit

Permalink
Update sccache to v0.4.1 (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilsan authored Mar 27, 2023
1 parent c2bbd5c commit e42c79a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
RUST_BACKTRACE: short
TERM: xterm-256color
NIGHTLY_TOOLCHAIN_VERSION: ${{ secrets.NIGHTLY_TOOLCHAIN_VERSION }}
SCCACHE_VERSION: v0.4.1

jobs:
# TODO: add to specific branches.
Expand Down Expand Up @@ -86,8 +87,8 @@ jobs:
sudo apt install -y git clang curl libssl-dev llvm libudev-dev cmake protobuf-compiler wget bzip2
sudo wget -c https://github.com/WebAssembly/binaryen/releases/download/version_111/binaryen-version_111-x86_64-linux.tar.gz -O - | sudo tar -xz -C .
sudo cp binaryen-version_111/bin/wasm-opt /usr/bin/
sudo wget -c https://github.com/mozilla/sccache/releases/download/v0.3.3/sccache-v0.3.3-x86_64-unknown-linux-musl.tar.gz -O - | sudo tar -xz -C .
sudo cp sccache-v0.3.3-x86_64-unknown-linux-musl/sccache /usr/bin/
sudo wget -c https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz -O - | sudo tar -xz -C .
sudo cp sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache /usr/bin/
sudo chmod +x /usr/bin/sccache
mkdir -p ~/.config/sccache/ && cp /root/sccache/client.toml ~/.config/sccache/config
Expand Down Expand Up @@ -185,8 +186,8 @@ jobs:
sudo apt install -y git clang curl libssl-dev llvm libudev-dev cmake wabt protobuf-compiler wget bzip2
sudo wget -c https://github.com/WebAssembly/binaryen/releases/download/version_111/binaryen-version_111-x86_64-linux.tar.gz -O - | sudo tar -xz -C .
sudo cp binaryen-version_111/bin/wasm-opt /usr/bin/
sudo wget -c https://github.com/mozilla/sccache/releases/download/v0.3.3/sccache-v0.3.3-x86_64-unknown-linux-musl.tar.gz -O - | sudo tar -xz -C .
sudo cp sccache-v0.3.3-x86_64-unknown-linux-musl/sccache /usr/bin/
sudo wget -c https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz -O - | sudo tar -xz -C .
sudo cp sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache /usr/bin/
sudo chmod +x /usr/bin/sccache
mkdir -p ~/.config/sccache/ && cp /root/sccache/client.toml ~/.config/sccache/config
Expand Down Expand Up @@ -589,7 +590,7 @@ jobs:
- name: "Install: sccache"
run: |
curl -L https://github.com/mozilla/sccache/releases/download/v0.3.3/sccache-v0.3.3-x86_64-unknown-linux-musl.tar.gz | tar zxf -
curl -L https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf -
mv ./sccache-*-x86_64-unknown-linux-musl/sccache ${CARGO_HOME:-~/.cargo}/bin/sccache
- name: "Install: grcov"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
CARGO_TERM_COLOR: always
TERM: xterm-256color
NIGHTLY_TOOLCHAIN_VERSION: ${{ secrets.NIGHTLY_TOOLCHAIN_VERSION }}
SCCACHE_VERSION: v0.4.1

jobs:
prepare:
Expand Down Expand Up @@ -63,8 +64,8 @@ jobs:
run: |
sudo apt update -y
sudo apt install -y git clang curl libssl-dev llvm libudev-dev cmake protobuf-compiler wget bzip2
sudo wget -c https://github.com/mozilla/sccache/releases/download/v0.3.3/sccache-v0.3.3-x86_64-unknown-linux-musl.tar.gz -O - | sudo tar -xz -C .
sudo cp sccache-v0.3.3-x86_64-unknown-linux-musl/sccache /usr/bin/
sudo wget -c https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz -O - | sudo tar -xz -C .
sudo cp sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache /usr/bin/
sudo chmod +x /usr/bin/sccache
mkdir -p ~/.config/sccache/ && cp /root/sccache/client.toml ~/.config/sccache/config
Expand Down

0 comments on commit e42c79a

Please sign in to comment.