diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed3aad9f26..c2805b3d30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -205,14 +205,26 @@ jobs: native-macos: needs: checks-and-tests runs-on: macos-latest + env: + RUSTC_WRAPPER: "sccache" + SCCACHE_BUCKET: ${{ secrets.SCCACHE_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 +235,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