From 61dccca1e6ff39819af7f38d9d6fe44e6d4c41c5 Mon Sep 17 00:00:00 2001 From: Marijan <77665447+mc2eqe@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:11:55 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed3aad9f26..c3445851a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -205,14 +205,27 @@ jobs: native-macos: needs: checks-and-tests runs-on: macos-latest + env: + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + SCCACHE_BUCKET: ${{ secrets.AWS_BUCKET }} + SCCACHE_REGION: ${{ secrets.SCCACHE_REGION }} + SCCACHE_S3_KEY_PREFIX: "astar-macos" steps: - name: Checkout the source code uses: actions/checkout@v3 with: submodules: true + - name: configure aws credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.SCCACHE_ROLE }} + role-session-name: github_astar_mac + aws-region: ${{ secrets.SCCACHE_REGION }} + - name: Install deps - run: brew install protobuf + run: brew install protobuf sccache - name: Install & display rust toolchain run: rustup show @@ -223,6 +236,9 @@ jobs: - name: Build optimized binary run: cargo build --release --verbose --locked + - name: Show sccache stats + run: sccache --show-stats + - uses: actions/upload-artifact@v3 with: name: astar-macOS-latest-x86_64