Skip to content

Commit a10c586

Browse files
committed
WIP: github: Build only a single-stage linux-cross-windows
Use a preexisting toolchain for cross building.
1 parent 796122a commit a10c586

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# slightly more, when we know a separate build of the same version but with
2020
# assertions enabled, has passed some amount of tests.
2121
prepare:
22-
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
22+
if: false
2323
runs-on: ubuntu-latest
2424
outputs:
2525
LLVM_VERSION: ${{steps.get-versions.outputs.LLVM_VERSION}}
@@ -387,30 +387,21 @@ jobs:
387387
# llvm and make a proper standalone toolchain for Windows (for all 4
388388
# architectures). The binaries built here match actual releases quite closely.
389389
linux-cross-windows:
390-
needs: [linux-stage1, linux-profile, prepare]
391390
runs-on: ubuntu-latest
392391
strategy:
393392
fail-fast: false
394393
matrix:
395394
include:
396-
- { arch: i686, crt: ucrt }
397395
- { arch: x86_64, crt: ucrt }
398-
- { arch: armv7, crt: ucrt }
399-
- { arch: aarch64, crt: ucrt }
400396
steps:
401-
- uses: actions/download-artifact@v4
402-
with:
403-
name: linux-stage1-${{matrix.crt}}-x86_64-toolchain
404397
- name: Unpack cross toolchain
405398
run: |
399+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250826/llvm-mingw-20250826-${{matrix.crt}}-ubuntu-22.04-x86_64.tar.xz
406400
tar -Jxf llvm-mingw-*.tar.xz
407401
rm llvm-mingw-*.tar.xz
408402
sudo mv llvm-mingw* /opt/llvm-mingw
409403
echo /opt/llvm-mingw/bin >> $GITHUB_PATH
410404
- uses: actions/checkout@v4
411-
- uses: actions/download-artifact@v4
412-
with:
413-
name: profile
414405
- name: Build
415406
env:
416407
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
@@ -421,7 +412,7 @@ jobs:
421412
BUILD_DATE: ${{needs.prepare.outputs.BUILD_DATE}}
422413
run: |
423414
sudo apt-get update && sudo apt-get install libltdl-dev swig autoconf-archive
424-
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python --thinlto --pgo
415+
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python
425416
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
426417
cd install
427418
NAME=llvm-mingw-$TAG-${{matrix.crt}}-${{matrix.arch}}
@@ -436,6 +427,7 @@ jobs:
436427

437428
# Run llvm-mingw's tests with the cross-built toolchains from above.
438429
test-toolchain:
430+
if: false
439431
needs: [linux-cross-windows]
440432
defaults:
441433
run:

0 commit comments

Comments
 (0)