-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (53 loc) · 1.53 KB
/
macos-build.yaml
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
name: Build on macOS
on:
push:
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
#- name: csrutil disable
# run: |
# sudo csrutil disable
#- name: csrutil enable
# run: |
# sudo csrutil enable --without kext
#- name: spctl kext-consent disable
# run: |
# sudo spctl kext-consent disable
- name: install deps
run: |
brew install automake libtool gawk coreutils
#- name: install deps
# run: |
#brew install [email protected]
- name: autogen
run: |
./autogen.sh
- name: configure
run: |
#https://stackoverflow.com/a/62591864
./configure CPPFLAGS="-I/usr/local/opt/gettext/include -I/usr/local/opt/[email protected]/include" LDFLAGS="-L/usr/local/opt/gettext/lib/ -L/usr/local/opt/[email protected]/lib"
- name: build
run: |
make -j$(sysctl -n hw.ncpu)
- name: install
run: |
sudo make install DESTDIR=///
#- name: load
# run: |
# sudo kextload -v /Library/Extensions/zfs.kext
#- name: ls
# run: |
# sudo ls -Rla
# ls -Rla
#- name: rsync
# run: |
# rsync -avx --exclude /out/ ${{github.workspace}}/ ${{github.workspace}}/out/ --no-links
#- name: Upload dev build
# uses: actions/[email protected]
# with:
# name: dev_build
# path: ${{github.workspace}}/out/*