Skip to content

Commit a0aac7c

Browse files
committed
WIP: github: Only run test-toolchain, test-ffmpeg, test-libcxx and test-openmp, detached from the rest
1 parent fd139ae commit a0aac7c

File tree

1 file changed

+17
-29
lines changed

1 file changed

+17
-29
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 29 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}}
@@ -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
@@ -378,8 +375,7 @@ jobs:
378375
# testing with the latest compiler instead of an older release).
379376
# Therefore, keep the test disabled by default; it's easy to enable
380377
# temporarily on a branch for testing.
381-
if: false
382-
needs: [linux-cross-windows, prepare]
378+
if: true
383379
strategy:
384380
fail-fast: false
385381
matrix:
@@ -393,11 +389,9 @@ jobs:
393389
- name: Install dependencies
394390
run: |
395391
choco install ninja
396-
- uses: actions/download-artifact@v4
397-
with:
398-
name: windows-ucrt-${{matrix.arch}}-toolchain
399392
- name: Unpack toolchain
400393
run: |
394+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
401395
Expand-Archive llvm-mingw-*.zip -DestinationPath .
402396
del llvm-mingw-*.zip
403397
mv llvm-mingw-* c:\llvm-mingw
@@ -441,8 +435,7 @@ jobs:
441435
# This also forces testing the bundled python executables.
442436
test-openmp:
443437
# Only running these tests in scheduled builds.
444-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
445-
needs: [linux-cross-windows, prepare]
438+
if: true
446439
strategy:
447440
fail-fast: false
448441
matrix:
@@ -456,11 +449,9 @@ jobs:
456449
- name: Install dependencies
457450
run: |
458451
choco install ninja
459-
- uses: actions/download-artifact@v4
460-
with:
461-
name: windows-ucrt-${{matrix.arch}}-toolchain
462452
- name: Unpack toolchain
463453
run: |
454+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
464455
Expand-Archive llvm-mingw-*.zip -DestinationPath .
465456
del llvm-mingw-*.zip
466457
mv llvm-mingw-* c:\llvm-mingw
@@ -508,7 +499,7 @@ jobs:
508499
# above. This also forces testing the bundled python executables.
509500
test-compiler-rt:
510501
# Only running these tests in scheduled builds.
511-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
502+
if: false
512503
needs: [linux-cross-windows, prepare]
513504
runs-on: windows-latest
514505
strategy:
@@ -587,7 +578,7 @@ jobs:
587578
# enabled, to catch code generation bugs that might trigger asserts, to
588579
# find such regressions early.
589580
linux-test-cross-build-ffmpeg:
590-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
581+
if: false
591582
needs: [linux-asserts]
592583
runs-on: ubuntu-latest
593584
strategy:
@@ -632,8 +623,7 @@ jobs:
632623
# compiler itself, but that only show up at runtime. This is only done
633624
# for scheduled builds.
634625
test-ffmpeg:
635-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
636-
needs: [linux-cross-windows]
626+
if: true
637627
strategy:
638628
fail-fast: false
639629
matrix:
@@ -661,11 +651,9 @@ jobs:
661651
diffutils
662652
pacboy: >-
663653
nasm:p
664-
- uses: actions/download-artifact@v4
665-
with:
666-
name: windows-ucrt-x86_64-toolchain
667654
- name: Unpack toolchain
668655
run: |
656+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
669657
unzip -q llvm-mingw-*.zip
670658
rm llvm-mingw-*.zip
671659
mv llvm-mingw-* /llvm-mingw
@@ -687,7 +675,7 @@ jobs:
687675
make -j$(nproc) fate
688676
689677
upload-nightly:
690-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
678+
if: false
691679
permissions:
692680
contents: write
693681
needs: [linux, linux-cross-aarch64, macos, linux-cross-windows, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]

0 commit comments

Comments
 (0)