From dcea734154d2e384b8bd5eb1788fc6e4caf66aa5 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Tue, 12 Sep 2023 00:56:57 -0400 Subject: [PATCH] last minute fixes --- .github/workflows/build-wasm.yml | 10 ++++++++-- .github/workflows/tests.yml | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index 26770fe99c..0642bb632d 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -42,7 +42,7 @@ jobs: - target: "build-runtime-testnet" package: "centrifuge-runtime" name: ${{ matrix.target }}-${{ matrix.package }} - runs-on: ubuntu-latest-8-cores + runs-on: ubuntu-latest-4-cores env: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" @@ -63,7 +63,13 @@ jobs: with: image: paritytech/srtool:${{ matrix.rust_version }} options: -v /tmp/cargo:/cargo-home -v ${{ github.workspace }}:/build -e PACKAGE=${{ matrix.package }} - run: /srtool/build + 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 + /srtool/build - name: Run sccache stat for check shell: bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ea43d99c75..8b85964420 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,8 +14,8 @@ jobs: name: lint-${{ matrix.target }} env: RUST_TOOLCHAIN: "nightly-2022-11-14" - SCCACHE_GHA_ENABLED: "true" - RUSTC_WRAPPER: "sccache" + # SCCACHE_GHA_ENABLED: "true" + # RUSTC_WRAPPER: "sccache" strategy: matrix: target: [fmt, taplo, clippy] @@ -60,6 +60,8 @@ jobs: runs-on: ubuntu-latest env: RUST_TOOLCHAIN: "nightly" + # SCCACHE_GHA_ENABLED: "true" + # RUSTC_WRAPPER: "sccache" steps: - name: Check out code uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2