-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.09 KB
/
mac-apple.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
42
on:
push:
branches:
- 'master'
name: 'Build: macOS (ARM64)'
jobs:
mac_aarch64:
name: macOS (ARM64)
runs-on: macos-11
steps:
- name: Checkout codebase
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: aarch64-apple-darwin
default: true
profile: minimal
- name: Build odo
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --all-features --target aarch64-apple-darwin
- name: Prepare odo for upload
run: |
cd ./target/aarch64-apple-darwin/release/
strip ./odo
chmod +x ./odo
tar -cvf aarch64-odo.osx.tar \
odo \
libodo.dylib \
libodo.a
- name: Upload odo build artifacts to GitHub
uses: actions/upload-artifact@v3
with:
name: aarch64-odo.osx
path: ./target/aarch64-apple-darwin/release/aarch64-odo.osx.tar
if-no-files-found: error