-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (44 loc) · 1.2 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 all
on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
permissions:
contents: write
jobs:
build:
strategy:
matrix:
runner: ["macOS-12", "macOS-13", "macOS-14"]
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Check Runner
run: |
# arch
# echo "runner: ${{ matrix.runner }}.$(arch).$(uname -m)"
# mayor version: sw_vers -productVersion | cut -d '.' -f 1
# Darwin : uname -s
echo "suffix="$(uname -s).${{ matrix.runner }}.$(arch)"" >> $GITHUB_ENV
brew config
- name: Install Dependencies
run: |
brew install gcc@12 eigen boost # libomp libtiff llvm
- name: Build
continue-on-error: true
run: |
cd Cell2Fire
make clean
make -f makefile.macos
otool -L Cell2Fire > otool_${{ env.suffix }}.txt
mv Cell2Fire Cell2Fire_${{ env.suffix }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: binaries_${{ env.suffix }}
path: |
Cell2Fire/otool_${{ env.suffix }}.txt
Cell2Fire/Cell2Fire_${{ env.suffix }}