GitHub Actions: Modernize Linux x64 workflow #537
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
name: macOS aarch64 | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-14 | |
env: | |
# The first aarch64 target | |
MACOSX_DEPLOYMENT_TARGET: 11.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@1.84.0 | |
with: | |
targets: aarch64-apple-darwin | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
- name: cargo build | |
run: cargo build --target aarch64-apple-darwin |