Skip to content

Commit

Permalink
debug why sccache path can't be found
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 13, 2023
1 parent e5513f4 commit f587f3b
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f587f3b

Please sign in to comment.