-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 948 Bytes
/
rust.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
name: Rust
on:
workflow_dispatch
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Install necessary dependencies
run: |
brew install pkg-config
brew install glib
brew install [email protected]
- name: Install required target
run: rustup target add aarch64-apple-darwin
- name: Build project
run: |
export CFLAGS="-D__ARM_ARCH__"
export CC=clang
export RUST_BACKTRACE=1
cargo build --verbose --release --target=aarch64-apple-darwin
- name: Upload a Build Artifact (MacOS M1)
uses: actions/[email protected]
with:
name: Build MacOS
path: ./target/aarch64-apple-darwin/release/proxyl
retention-days: 1