Skip to content

Commit d5a056d

Browse files
committed
WIP: github: Only run test-*, detached from the build
1 parent cfc9ac8 commit d5a056d

File tree

1 file changed

+18
-33
lines changed

1 file changed

+18
-33
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 33 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,8 +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')
512-
needs: [linux-cross-windows, prepare]
502+
if: true
513503
strategy:
514504
fail-fast: false
515505
matrix:
@@ -523,11 +513,9 @@ jobs:
523513
- name: Install dependencies
524514
run: |
525515
choco install ninja
526-
- uses: actions/download-artifact@v4
527-
with:
528-
name: windows-ucrt-${{matrix.arch}}-toolchain
529516
- name: Unpack toolchain
530517
run: |
518+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
531519
Expand-Archive llvm-mingw-*.zip -DestinationPath .
532520
del llvm-mingw-*.zip
533521
mv llvm-mingw-* c:\llvm-mingw
@@ -589,7 +577,7 @@ jobs:
589577
# enabled, to catch code generation bugs that might trigger asserts, to
590578
# find such regressions early.
591579
linux-test-cross-build-ffmpeg:
592-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
580+
if: false
593581
needs: [linux-asserts]
594582
runs-on: ubuntu-latest
595583
strategy:
@@ -634,8 +622,7 @@ jobs:
634622
# compiler itself, but that only show up at runtime. This is only done
635623
# for scheduled builds.
636624
test-ffmpeg:
637-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
638-
needs: [linux-cross-windows]
625+
if: true
639626
strategy:
640627
fail-fast: false
641628
matrix:
@@ -663,11 +650,9 @@ jobs:
663650
diffutils
664651
pacboy: >-
665652
nasm:p
666-
- uses: actions/download-artifact@v4
667-
with:
668-
name: windows-ucrt-${{matrix.arch}}-toolchain
669653
- name: Unpack toolchain
670654
run: |
655+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
671656
unzip -q llvm-mingw-*.zip
672657
rm llvm-mingw-*.zip
673658
mv llvm-mingw-* /llvm-mingw
@@ -689,7 +674,7 @@ jobs:
689674
make -j$(nproc) fate
690675
691676
upload-nightly:
692-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
677+
if: false
693678
permissions:
694679
contents: write
695680
needs: [linux, linux-cross-aarch64, macos, linux-cross-windows, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]

0 commit comments

Comments
 (0)