-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug why sccache path can't be found
- Loading branch information
Showing
1 changed file
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,21 +12,27 @@ jobs: | |
runs-on: ubuntu-latest-4-cores | ||
env: | ||
RUST_TOOLCHAIN: "nightly-2022-11-14" | ||
RUSTFLAGS: " -W unused-extern-crates" | ||
# RUSTFLAGS: " -W unused-extern-crates" | ||
PACKAGE: "altair-runtime" | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
# RUSTC_WRAPPER: "sccache" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2 | ||
|
||
# TEST 1: run sccache vanilla using the developer's action | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Add sccache to PATH | ||
run: | | ||
# echo "${SCCACHE_PATH}" >> $GITHUB_PATH | ||
echo "RUSTC_WRAPPER=${SCCACHE_PATH}" >> $GITHUB_ENV | ||
- name: Run sccache stat for check | ||
shell: bash | ||
run: ${SCCACHE_PATH} --show-stats | ||
run: sccache --show-stats | ||
|
||
- name: Prep build on Ubuntu | ||
uses: ./.github/actions/prep-ubuntu | ||
with: | ||
|
@@ -73,6 +79,7 @@ jobs: | |
with: | ||
GWIP: ${{ secrets.GWIP_SCCACHE }} | ||
GSA: ${{ secrets.GSA_SCCACHE }} | ||
|
||
- name: Run sccache stat for check | ||
shell: bash | ||
run: ${SCCACHE_PATH} --show-stats | ||
|
@@ -86,13 +93,13 @@ jobs: | |
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: paritytech/srtool:${{ matrix.rust_version }} | ||
options: --user root -v /tmp/cargo:/cargo-home -v ${{ github.workspace }}:/build -e PACKAGE=${{ matrix.package }} | ||
options: --user root -v ${{ env.SCCACHE_PATH }}:/usr/local/bin/sccache -v ${{ github.workspace }}/.cargo:/cargo-home -v ${{ github.workspace }}:/build -e PACKAGE=${{ matrix.package }} | ||
run: | | ||
apt-get update && apt-get install --yes libpq-dev wget | ||
wget https://github.com/mozilla/sccache/releases/download/v0.5.4/sccache-dist-v0.5.4-x86_64-unknown-linux-musl.tar.gz \ | ||
&& tar xzf sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz \ | ||
&& mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache \ | ||
&& chmod +x /usr/local/bin/sccache | ||
# apt-get update && apt-get install --yes libpq-dev wget | ||
# wget https://github.com/mozilla/sccache/releases/download/v0.5.4/sccache-dist-v0.5.4-x86_64-unknown-linux-musl.tar.gz \ | ||
# && tar xzf sccache-dist-v0.5.4-x86_64-unknown-linux-musl.tar.gz \ | ||
# && mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache \ | ||
# && chmod +x /usr/local/bin/sccache | ||
/srtool/build | ||
- name: Run sccache stat for check | ||
|