-
-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (43 loc) · 1.31 KB
/
build_macos.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
44
45
46
47
48
49
50
51
52
name: Build macOS
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DYN_NAME: libflx_rs_core
EXT: .dylib
NEW_NAME: flx-rs
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/[email protected]
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14.0"
- name: Build binaries
run: |
cd core
rustup target install ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}
- name: Rename dynamic module
run: mv core/target/${{ matrix.target }}/release/${{ env.DYN_NAME }}${{ env.EXT }} core/target/${{ matrix.target }}/release/${{ env.NEW_NAME }}.${{ matrix.target }}${{ env.EXT }}
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: ${{ env.NEW_NAME }}.${{ matrix.target }}
path: core/target/${{ matrix.target }}/release/${{ env.NEW_NAME }}.${{ matrix.target }}${{ env.EXT }}