File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 21
21
matrix :
22
22
include :
23
23
- name : x86_64-linux-gnu
24
- os : ubuntu-20.04 # for old glibc
24
+ os : nscloud- ubuntu-20.04-amd64-4x8 # for old glibc
25
25
# LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON normally set by llvm/CMakeLists.txt but doesn't propagate to our separate runtimes build
26
26
more-opts : -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_INSTALL_RPATH='$ORIGIN/../lib' -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON
27
27
- name : aarch64-linux-gnu
78
78
with :
79
79
msystem : clang64
80
80
install : mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-ccache git mingw-w64-clang-x86_64-cmake make tar zstd
81
- - name : Cache
82
- uses : actions/cache@v2
81
+ - name : Restore Cache
82
+ id : restore-cache
83
+ uses : actions/cache/restore@v4
83
84
with :
84
85
path : .ccache
85
86
key : ${{ matrix.name }}-build-${{ github.sha }}
88
89
${{ matrix.name }}-build
89
90
- name : Build
90
91
run : |
92
+ set -euxo pipefail
91
93
git clone -q --depth 1 -b llvmorg-19.1.2 --recursive https://github.com/llvm/llvm-project
92
94
cmake llvm-project/llvm -G Ninja -B build/llvm -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/lean-llvm -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++\
93
95
-DLLVM_ENABLE_PROJECTS="llvm;clang;lld;compiler-rt;bolt" -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_CCACHE_BUILD=ON\
@@ -122,6 +124,12 @@ jobs:
122
124
run : lean-llvm/bin/clang -v
123
125
- name : CCache stats
124
126
run : ccache -s
127
+ - name : Save Cache
128
+ if : always() && steps.restore-cache.outputs.cache-hit != 'true'
129
+ uses : actions/cache/save@v4
130
+ with :
131
+ path : .ccache
132
+ key : ${{ matrix.name }}-build-${{ github.sha }}
125
133
- uses : actions/upload-artifact@v4
126
134
with :
127
135
name : lean-llvm-${{ matrix.name }}
You can’t perform that action at this time.
0 commit comments