Skip to content

Commit 3874d5a

Browse files
committed
WIP: github: Only run test-toolchain, test-ffmpeg and test-libcxx, detached from the rest
1 parent 58aa77b commit 3874d5a

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

.github/workflows/build.yml

+14-20
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}}
@@ -66,7 +66,7 @@ jobs:
6666

6767
# Build a cross compiler for Linux, targeting Windows.
6868
linux:
69-
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
69+
if: false
7070
needs: [prepare]
7171
runs-on: ubuntu-22.04
7272
steps:
@@ -102,7 +102,7 @@ jobs:
102102
# Crosscompile the toolchain for running on Linux on a different architecture, bundle the runtime
103103
# libraries that were built in the 'linux' step above.
104104
linux-cross-aarch64:
105-
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
105+
if: false
106106
needs: [linux, prepare]
107107
runs-on: ubuntu-22.04
108108
steps:
@@ -157,7 +157,7 @@ jobs:
157157
# to better catch such bugs early. This makes the first-stage toolchain built
158158
# here in scheduled builds somewhat slower.
159159
linux-asserts:
160-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
160+
if: false
161161
needs: [prepare]
162162
runs-on: ubuntu-latest
163163
steps:
@@ -187,7 +187,7 @@ jobs:
187187

188188
# Build a cross compiler for macOS, targeting Windows.
189189
macos:
190-
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
190+
if: false
191191
needs: [prepare]
192192
runs-on: macos-14
193193
steps:
@@ -225,7 +225,7 @@ jobs:
225225
# environments). The binaries built here rely on the runtime libraries from
226226
# the host environment (libstdc++ or libc++).
227227
msys2:
228-
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
228+
if: false
229229
needs: [prepare]
230230
runs-on: windows-latest
231231
defaults:
@@ -282,7 +282,7 @@ jobs:
282282
# llvm and make a proper standalone toolchain for Windows (for all 4
283283
# architectures). The binaries built here match actual releases quite closely.
284284
linux-cross-windows:
285-
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
285+
if: false
286286
needs: [linux, prepare]
287287
runs-on: ubuntu-latest
288288
strategy:
@@ -331,7 +331,6 @@ jobs:
331331
# toolchains from above.
332332
test-toolchain:
333333
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
334-
needs: [linux-cross-windows]
335334
defaults:
336335
run:
337336
shell: msys2 {0}
@@ -351,11 +350,9 @@ jobs:
351350
install: >-
352351
unzip
353352
make
354-
- uses: actions/download-artifact@v4
355-
with:
356-
name: windows-ucrt-${{matrix.arch}}-toolchain
357353
- name: Unpack toolchain
358354
run: |
355+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
359356
unzip -q llvm-mingw-*.zip
360357
rm llvm-mingw-*.zip
361358
mv llvm-mingw-* /llvm-mingw
@@ -441,7 +438,7 @@ jobs:
441438
# This also forces testing the bundled python executables.
442439
test-openmp:
443440
# Only running these tests in scheduled builds.
444-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
441+
if: false
445442
needs: [linux-cross-windows, prepare]
446443
runs-on: windows-latest
447444
strategy:
@@ -506,7 +503,7 @@ jobs:
506503
# above. This also forces testing the bundled python executables.
507504
test-compiler-rt:
508505
# Only running these tests in scheduled builds.
509-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
506+
if: false
510507
needs: [linux-cross-windows, prepare]
511508
runs-on: windows-latest
512509
strategy:
@@ -585,7 +582,7 @@ jobs:
585582
# enabled, to catch code generation bugs that might trigger asserts, to
586583
# find such regressions early.
587584
linux-test-cross-build-ffmpeg:
588-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
585+
if: false
589586
needs: [linux-asserts]
590587
runs-on: ubuntu-latest
591588
strategy:
@@ -630,8 +627,7 @@ jobs:
630627
# compiler itself, but that only show up at runtime. This is only done
631628
# for scheduled builds.
632629
test-ffmpeg:
633-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
634-
needs: [linux-cross-windows]
630+
if: true
635631
strategy:
636632
fail-fast: false
637633
matrix:
@@ -659,11 +655,9 @@ jobs:
659655
diffutils
660656
pacboy: >-
661657
nasm:p
662-
- uses: actions/download-artifact@v4
663-
with:
664-
name: windows-ucrt-x86_64-toolchain
665658
- name: Unpack toolchain
666659
run: |
660+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
667661
unzip -q llvm-mingw-*.zip
668662
rm llvm-mingw-*.zip
669663
mv llvm-mingw-* /llvm-mingw
@@ -685,7 +679,7 @@ jobs:
685679
make -j$(nproc) fate
686680
687681
upload-nightly:
688-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
682+
if: false
689683
permissions:
690684
contents: write
691685
needs: [linux, linux-cross-aarch64, macos, linux-cross-windows, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]

0 commit comments

Comments
 (0)