-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (37 loc) · 1.18 KB
/
darwin.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
43
name: darwin
on:
pull_request:
branches: [ release, development ]
paths-ignore:
- '**.md'
merge_group:
jobs:
build:
runs-on: "macos-14"
steps:
- name: "checkout repo"
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Install Rust (ARM)"
shell: bash
run: "rustup target add aarch64-apple-darwin"
- name: "Install Rust Intel"
shell: bash
run: "rustup target add x86_64-apple-darwin"
- name: "Build (Intel)"
shell: bash
run: |
examples=("long_running" "nested_shell" "nested_shell_async" "simple_ls_chan" "simple_ls_rw" "smux")
for example in "${examples[@]}"; do
cargo build --target x86_64-apple-darwin --example "$example"
done
- name: "Build (ARM)"
shell: bash
run: |
examples=("long_running" "nested_shell" "nested_shell_async" "simple_ls_chan" "simple_ls_rw" "smux")
for example in "${examples[@]}"; do
cargo build --target aarch64-apple-darwin --example "$example"
done