Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/macos build cache #1048

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,29 @@ 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"
permissions:
id-token: write
contents: read
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 +238,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