Skip to content

Commit

Permalink
Added root to the srtool container
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 13, 2023
1 parent dcea734 commit bc491db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:

- name: Run sccache-cache
uses: mozilla-actions/[email protected]


- name: Reset cache (main branch only)
if: ${{ github.ref == 'refs/heads/main' }}
run: echo "SCCACHE_RECACHE=true" >> $GITHUB_ENV

- name: Check cargo build release
run: cargo build --release "$@"

Expand Down Expand Up @@ -62,7 +66,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: paritytech/srtool:${{ matrix.rust_version }}
options: -v /tmp/cargo:/cargo-home -v ${{ github.workspace }}:/build -e PACKAGE=${{ matrix.package }}
options: --user root -v /tmp/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 \
Expand Down

0 comments on commit bc491db

Please sign in to comment.