-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (34 loc) · 987 Bytes
/
rustbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Rust dependencies
uses: actions/[email protected]
with:
path: target
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-
- name: Install Rust toolchain (Apple Silicon)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
override: true
- name: Build for mac
run: cargo build --release --target aarch64-apple-darwin
- name: Create Release Artifact
uses: actions/upload-artifact@v3
with:
name: meower-darwin-arm
path: target/aarch64-apple-darwin/release/meower