Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mc2eqe authored Oct 9, 2023
1 parent 3a5d9fd commit b7e0532
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b7e0532

Please sign in to comment.