-
-
Notifications
You must be signed in to change notification settings - Fork 23
67 lines (56 loc) · 1.59 KB
/
arm-mac.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: ARM-Mac
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
repository_dispatch:
types: [add_ons_push]
workflow_dispatch:
jobs:
build_and_test:
name: Build plugin for Apple Silicon
runs-on: macos-latest
steps:
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout add-ons
uses: actions/checkout@v2
if: github.event_name != 'pull_request'
with:
ref: main
repository: Chowdhury-DSP/BYOD-add-ons
path: modules/BYOD-add-ons
token: ${{ secrets.OUR_GITHUB_PAT }}
- name: Checkout Jai
uses: actions/checkout@v2
if: github.actor == 'jatinchowdhury18'
with:
ref: main
repository: Chowdhury-DSP/jai-minimal
token: ${{ secrets.OUR_GITHUB_PAT }}
path: modules/jai
- name: Checkout math_approx
uses: actions/checkout@v2
if: github.actor == 'jatinchowdhury18'
with:
ref: main
repository: Chowdhury-DSP/math_approx
token: ${{ secrets.OUR_GITHUB_PAT }}
path: modules/math_approx
- name: Configure
shell: bash
run: cmake -Bbuild -GXcode $CONFIGURE_ADD_ONS_FLAG -D"CMAKE_OSX_ARCHITECTURES=arm64"
env:
CONFIGURE_ADD_ONS_FLAG: "${{ github.event_name != 'pull_request' && '-DBYOD_BUILD_ADD_ON_MODULES=ON' || '' }}"
- name: Build
shell: bash
run: cmake --build build --config Debug --parallel --target BYOD_AU | xcpretty