@@ -64,50 +64,12 @@ jobs:
6464 parameters.txt
6565 retention-days : 7
6666
67- linux-stage1 :
68- needs : [prepare]
69- runs-on : ubuntu-22.04
70- steps :
71- - uses : actions/checkout@v4
72- - name : Build
73- env :
74- LLVM_VERSION : ${{needs.prepare.outputs.LLVM_VERSION}}
75- TAG : ${{needs.prepare.outputs.TAG}}
76- SOURCE_DATE_EPOCH : ${{needs.prepare.outputs.COMMIT_DATE_UNIX}}
77- BUILD_DATE : ${{needs.prepare.outputs.BUILD_DATE}}
78- run : |
79- # Skip dynamic library dependencies that might make it harder to
80- # run the binaries on other distros (and that have little use within
81- # llvm-mingw).
82- LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $(pwd)/install/llvm --stage1 --llvm-only
83- .github/workflows/store-version.sh install/llvm/versions.txt
84- cd install
85- DISTRO=ubuntu-$(grep DISTRIB_RELEASE /etc/lsb-release | cut -f 2 -d =)-$(uname -m)
86- NAME=llvm-$TAG-$DISTRO
87- mv llvm $NAME
88- tar -Jcf ../$NAME.tar.xz --format=ustar --numeric-owner --owner=0 --group=0 --sort=name --mtime="$BUILD_DATE" $NAME
89- - uses : actions/upload-artifact@v4
90- with :
91- name : linux-llvm-x86_64
92- path : |
93- llvm-*.tar.xz
94- retention-days : 7
95-
9667 # Build a cross compiler for Linux, targeting Windows.
9768 linux :
98- needs : [prepare, linux-stage1 ]
69+ needs : [prepare]
9970 runs-on : ubuntu-22.04
10071 steps :
10172 - uses : actions/checkout@v4
102- - uses : actions/download-artifact@v4
103- with :
104- name : linux-llvm-x86_64
105- - name : Unpack stage1 Clang
106- run : |
107- tar -Jxf llvm-*.tar.xz
108- rm llvm-*.tar.xz
109- sudo mv llvm* /opt/llvm
110- echo /opt/llvm/bin >> $GITHUB_PATH
11173 - name : Build
11274 env :
11375 LLVM_VERSION : ${{needs.prepare.outputs.LLVM_VERSION}}
11981 # Skip dynamic library dependencies that might make it harder to
12082 # run the binaries on other distros (and that have little use within
12183 # llvm-mingw).
122- LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --with-clang
84+ LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $(pwd)/install/llvm-mingw
12385 .github/workflows/store-version.sh install/llvm-mingw/versions.txt
12486 ./test-libcxx-module.sh $(pwd)/install/llvm-mingw
12587 ./run-tests.sh $(pwd)/install/llvm-mingw
@@ -138,27 +100,18 @@ jobs:
138100 # Crosscompile the toolchain for running on Linux on a different architecture, bundle the runtime
139101 # libraries that were built in the 'linux' step above.
140102 linux-cross-aarch64 :
141- needs : [linux, linux-stage1, prepare]
103+ needs : [linux, prepare]
142104 runs-on : ubuntu-22.04
143105 steps :
144106 - uses : actions/checkout@v4
145- - uses : actions/download-artifact@v4
146- with :
147- name : linux-llvm-x86_64
148- - name : Unpack stage1 Clang
149- run : |
150- tar -Jxf llvm-*.tar.xz
151- rm llvm-*.tar.xz
152- sudo mv llvm* /opt/llvm
153- echo /opt/llvm/bin >> $GITHUB_PATH
154107 - name : Build
155108 env :
156109 LLVM_VERSION : ${{needs.prepare.outputs.LLVM_VERSION}}
157110 MINGW_W64_VERSION : ${{needs.prepare.outputs.MINGW_W64_VERSION}}
158111 SOURCE_DATE_EPOCH : ${{needs.prepare.outputs.COMMIT_DATE_UNIX}}
159112 run : |
160113 sudo apt-get update && sudo apt-get install g++-aarch64-linux-gnu
161- ./build-all.sh $(pwd)/install/llvm-mingw --no-runtimes --host=aarch64-linux-gnu --with-clang
114+ ./build-all.sh $(pwd)/install/llvm-mingw --no-runtimes --host=aarch64-linux-gnu
162115 .github/workflows/store-version.sh install/llvm-mingw/versions.txt
163116 - uses : actions/download-artifact@v4
164117 with :
@@ -228,49 +181,12 @@ jobs:
228181 llvm-mingw-linux.tar.xz
229182 retention-days : 7
230183
231- macos-stage1 :
232- needs : [prepare]
233- runs-on : macos-14
234- steps :
235- - uses : actions/checkout@v4
236- - name : Build
237- env :
238- LLVM_VERSION : ${{needs.prepare.outputs.LLVM_VERSION}}
239- TAG : ${{needs.prepare.outputs.TAG}}
240- SOURCE_DATE_EPOCH : ${{needs.prepare.outputs.COMMIT_DATE_UNIX}}
241- BUILD_DATE : ${{needs.prepare.outputs.BUILD_DATE}}
242- run : |
243- # Disable zstd and python. Both are available on the runners, but
244- # installed with homebrew, and only available in the native (arm64)
245- # form.
246- LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $(pwd)/install/llvm --stage1 --llvm-only
247- .github/workflows/store-version.sh install/llvm/versions.txt
248- cd install
249- NAME=llvm-$TAG-macos-$(uname -m)
250- mv llvm $NAME
251- gtar -Jcf ../$NAME.tar.xz --format=ustar --numeric-owner --owner=0 --group=0 --sort=name --mtime="$BUILD_DATE" $NAME
252- - uses : actions/upload-artifact@v4
253- with :
254- name : macos-llvm
255- path : |
256- llvm-*.tar.xz
257- retention-days : 7
258-
259184 # Build a cross compiler for macOS, targeting Windows.
260185 macos :
261- needs : [prepare, macos-stage1 ]
186+ needs : [prepare]
262187 runs-on : macos-14
263188 steps :
264189 - uses : actions/checkout@v4
265- - uses : actions/download-artifact@v4
266- with :
267- name : macos-llvm
268- - name : Unpack stage1 Clang
269- run : |
270- tar -Jxf llvm-*.tar.xz
271- rm llvm-*.tar.xz
272- mv llvm* $HOME/llvm
273- echo $HOME/llvm/bin >> $GITHUB_PATH
274190 - name : Build
275191 env :
276192 LLVM_VERSION : ${{needs.prepare.outputs.LLVM_VERSION}}
@@ -284,8 +200,7 @@ jobs:
284200 # form. Therefore, autodetection will pick them up, but linking
285201 # universal binaries fails as those libraries are unavailable in the
286202 # other (x86_64) architecture form.
287- export SDKROOT=$(xcrun --show-sdk-path)
288- MACOS_REDIST=1 LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --with-clang
203+ MACOS_REDIST=1 LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $(pwd)/install/llvm-mingw
289204 .github/workflows/store-version.sh install/llvm-mingw/versions.txt
290205 ./test-libcxx-module.sh $(pwd)/install/llvm-mingw
291206 ./run-tests.sh $(pwd)/install/llvm-mingw
@@ -753,8 +668,6 @@ jobs:
753668 run : |
754669 rm -rf linux-asserts*
755670 rm -rf msys2*
756- rm -rf linux-llvm-*
757- rm -rf macos-llvm*
758671 mv *-toolchain/*.zip *-toolchain/*.tar.xz .
759672 - name : Upload binaries
760673 env :
0 commit comments