17
17
push :
18
18
branches : [develop]
19
19
paths-ignore :
20
+ - ' .github/workflows/Windows-LLVM.yml'
20
21
- ' .github/workflows/Windows-MSVC.yml'
21
22
- ' .github/workflows/Linux.yml'
22
- - ' .github/workflows/macOS.yml'
23
23
- ' .github/workflows/iOS.yml'
24
24
- ' .github/workflows/Android.yml'
25
25
- ' .github/workflows/AutoMerger.yml'
36
36
matrix :
37
37
os : [macOS-latest]
38
38
kind : [static, shared]
39
- mode : [release, debug, asan ]
39
+ mode : [release, debug]
40
40
41
41
runs-on : ${{ matrix.os }}
42
42
53
53
with :
54
54
fetch-depth : 0
55
55
56
- - name : Cache LLVM
57
- id : cache_llvm
58
- uses : actions/cache@v4
59
- with :
60
- path : ${{ runner.workspace }}/StormKit/llvm
61
- key : ${{ matrix.os }}-llvm
62
- save-always : true
63
- restore-keys : |
64
- ${{ matrix.os }}-llvm
65
-
66
- - name : Download and Uncompress LLVM
67
- if : ${{ steps.cache_llvm.outputs.cache-hit != 'true' }}
68
- run : |
69
- wget 'https://github.com/Arthapz/llvm-prebuilt/raw/main/macOS/llvm.7z.001'
70
- 7z x llvm.7z.001
71
- rm llvm.7z.001
56
+ - name : Install llvm
57
+ run : brew install llvm
72
58
73
59
- name : Set xmake env
74
60
run : echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
79
65
xmake-version : branch@dev
80
66
actions-cache-folder : .xmake-cache-${{ steps.cache_key.outputs.key }}
81
67
82
- - name : Update xmake to patched xmake
83
- run : xmake update -s https://github.com/Arthapz/xmake.git#modules
84
-
85
68
- name : Update xmake repository
86
69
run : xmake repo --update -v
87
70
@@ -98,18 +81,18 @@ jobs:
98
81
- name : Configure & Build
99
82
id : build
100
83
run : |
101
- xmake f -v --yes -m ${{ (matrix.mode == 'release' || matrix.mode == 'debug') && matrix.mode || 'releasedbg' }} -k ${{ matrix.kind }} --sanitizers=${{ matrix.mode == 'asan ' && 'y' || 'n' }} --examples=y --tests=y --toolchain=llvm --sdk="${{ runner.workspace }}/StormKit /llvm/" --runtimes="c++_shared"
84
+ xmake f -v --yes -m ${{ (matrix.mode == 'release' || matrix.mode == 'debug') && matrix.mode || 'releasedbg' }} -k ${{ matrix.kind }} --sanitizers=${{ matrix.mode == 'debug ' && 'y' || 'n' }} --examples=y --tests=y --toolchain=llvm --sdk="/opt/homebrew/opt /llvm/" --runtimes="c++_shared"
102
85
xmake b -v
103
86
104
87
- name : Tests
105
- run : DYLD_LIBRARY_PATH="${{ runner.workspace }}/StormKit/llvm/lib" xmake test -v
88
+ run : xmake test -v
106
89
107
90
- name : Installation
108
91
run : xmake install -v --installdir="${{ runner.workspace }}/output"
109
92
110
93
- name : Upload artifacts
111
94
id : upload
112
- uses : actions/upload-artifact@v1
95
+ uses : actions/upload-artifact@v4
113
96
with :
114
97
name : macOS-x64-${{ matrix.kind }}-${{ matrix.mode }}
115
98
path : ${{ runner.workspace }}/output
0 commit comments