File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 30
30
31
31
jobs :
32
32
build :
33
- name : Linux-${{ matrix.arch }} ( ${{ matrix.kind }}-${{ matrix.mode }} )
33
+ name : Linux-${{ matrix.arch }} (${{ matrix.kind }}-${{ matrix.mode }})
34
34
35
35
strategy :
36
36
fail-fast : false
@@ -75,16 +75,21 @@ jobs:
75
75
# path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
76
76
# key: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-${{ steps.cache_key.outputs.key }}
77
77
78
+ - name : Add LLVM apt repository
79
+ run : |
80
+ sudo 'echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main
81
+ deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" >> /etc/apt/source.list'
82
+ sudo apt update
83
+
78
84
- name : Install LLVM and Clang
79
- uses : KyleMayes/install-llvm- action@v2
85
+ uses : awalsh128/cache-apt-pkgs- action@latest
80
86
with :
81
- version : " 19.1.3"
82
- directory : ${{ runner.temp }}/llvm
87
+ packages : clang libc++-dev libc++1 libc++abi-dev libc++abi1 mold llvm-runtime llvm
83
88
84
89
- name : Configure & Build
85
90
id : build
86
91
run : |
87
- xmake f -v -a ${{ (matrix.arch == " x64" ) && " x86_64" || (matrix.arch == " arm64" ) && " aarch64" || matrix.arch }} --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 --mold=y --runtimes="c++_shared" --sdk="${{ runner.temp }}/llvm"
92
+ xmake f -v -a ${{ (matrix.arch == ' x64' ) && ' x86_64' || (matrix.arch == ' arm64' ) && ' aarch64' || matrix.arch }} --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 --mold=y --runtimes="c++_shared" --sdk="${{ runner.temp }}/llvm"
88
93
xmake b -v
89
94
90
95
- name : Tests
Original file line number Diff line number Diff line change 29
29
30
30
jobs :
31
31
build :
32
- name : ${{ matrix.os }}-${{ matrix.arch }} ( ${{ matrix.kind }}-${{ matrix.mode }} )
32
+ name : ${{ matrix.os }}-${{ matrix.arch }} (${{ matrix.kind }}-${{ matrix.mode }})
33
33
strategy :
34
34
fail-fast : false
35
35
matrix :
You can’t perform that action at this time.
0 commit comments