File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : C/xcodebuild CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ tags : [ '*' ]
7
+ pull_request :
8
+ branches : [ main ]
9
+
10
+ jobs :
11
+ build :
12
+ name : Build on ${{ matrix.os }}
13
+ timeout-minutes : 5
14
+ strategy :
15
+ matrix :
16
+ os :
17
+ - macos-14
18
+ # - macos-13
19
+ # - macos-12
20
+ runs-on : ${{ matrix.os }}
21
+ steps :
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ repository : getargv/getargv
25
+ path : getargv
26
+ token : ${{ secrets.GH_PAT }}
27
+ - name : Build libgetargv
28
+ run : make dylib
29
+ working-directory : getargv
30
+ - name : Install libgetargv
31
+ run : sudo make install_dylib
32
+ working-directory : getargv
33
+ - uses : actions/checkout@v4
34
+ with :
35
+ path : adv_cmds
36
+ - name : make
37
+ run : |
38
+ sudo mkdir -p /usr/local/include/System/sys/
39
+ sudo curl -o "/usr/local/include/System/sys/persona.h" https://raw.githubusercontent.com/apple-oss-distributions/xnu/main/bsd/sys/persona.h
40
+ sudo curl -o "/usr/local/include/System/sys/proc.h" https://raw.githubusercontent.com/apple-oss-distributions/xnu/main/bsd/sys/proc.h
41
+ sed -e 's/macosx.internal/macosx/g' -e 's|DPS_ENTITLED|DPS_ENTITLED -L/usr/local/lib -lgetargv -DPRIVATE -I/usr/local/include|g' -i '' adv_cmds.xcodeproj/project.pbxproj
42
+ xcodebuild -scheme ps
43
+ working-directory : adv_cmds
44
+ # - uses: actions/upload-artifact@v4
45
+ # with:
46
+ # name: ${{ matrix.os }}.zip
47
+ # path: |
48
+ # adv_cmds/*
You can’t perform that action at this time.
0 commit comments