From bc491db45d6263a26cf89bc2abbdc6d572d743c2 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Tue, 12 Sep 2023 20:28:38 -0400 Subject: [PATCH] Added root to the srtool container --- .github/workflows/build-wasm.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index 0642bb632d..853b552ace 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -25,7 +25,11 @@ jobs: - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.3 - + + - 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 "$@" @@ -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 \