Skip to content

Commit 7119207

Browse files
committed
WIP: github: Only run test-*, detached from the build
1 parent 54fdb94 commit 7119207

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-latest
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:
@@ -330,7 +330,6 @@ jobs:
330330
# Run llvm-mingw's tests with the cross-built toolchains from above.
331331
test-toolchain:
332332
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
333-
needs: [linux-cross-windows]
334333
defaults:
335334
run:
336335
shell: msys2 {0}
@@ -350,11 +349,9 @@ jobs:
350349
install: >-
351350
unzip
352351
make
353-
- uses: actions/download-artifact@v4
354-
with:
355-
name: windows-ucrt-${{matrix.arch}}-toolchain
356352
- name: Unpack toolchain
357353
run: |
354+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
358355
unzip -q llvm-mingw-*.zip
359356
rm llvm-mingw-*.zip
360357
mv llvm-mingw-* /llvm-mingw
@@ -377,8 +374,7 @@ jobs:
377374
# testing with the latest compiler instead of an older release).
378375
# Therefore, keep the test disabled by default; it's easy to enable
379376
# temporarily on a branch for testing.
380-
if: false
381-
needs: [linux-cross-windows, prepare]
377+
if: true
382378
strategy:
383379
fail-fast: false
384380
matrix:
@@ -392,11 +388,9 @@ jobs:
392388
- name: Install dependencies
393389
run: |
394390
choco install ninja
395-
- uses: actions/download-artifact@v4
396-
with:
397-
name: windows-ucrt-${{matrix.arch}}-toolchain
398391
- name: Unpack toolchain
399392
run: |
393+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
400394
Expand-Archive llvm-mingw-*.zip -DestinationPath .
401395
del llvm-mingw-*.zip
402396
mv llvm-mingw-* c:\llvm-mingw
@@ -440,8 +434,7 @@ jobs:
440434
# This also forces testing the bundled python executables.
441435
test-openmp:
442436
# Only running these tests in scheduled builds.
443-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
444-
needs: [linux-cross-windows, prepare]
437+
if: true
445438
strategy:
446439
fail-fast: false
447440
matrix:
@@ -455,11 +448,9 @@ jobs:
455448
- name: Install dependencies
456449
run: |
457450
choco install ninja
458-
- uses: actions/download-artifact@v4
459-
with:
460-
name: windows-ucrt-${{matrix.arch}}-toolchain
461451
- name: Unpack toolchain
462452
run: |
453+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
463454
Expand-Archive llvm-mingw-*.zip -DestinationPath .
464455
del llvm-mingw-*.zip
465456
mv llvm-mingw-* c:\llvm-mingw
@@ -507,8 +498,7 @@ jobs:
507498
# also forces testing the bundled python executables.
508499
test-compiler-rt:
509500
# Only running these tests in scheduled builds.
510-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
511-
needs: [linux-cross-windows, prepare]
501+
if: true
512502
strategy:
513503
fail-fast: false
514504
matrix:
@@ -522,11 +512,9 @@ jobs:
522512
- name: Install dependencies
523513
run: |
524514
choco install ninja
525-
- uses: actions/download-artifact@v4
526-
with:
527-
name: windows-ucrt-${{matrix.arch}}-toolchain
528515
- name: Unpack toolchain
529516
run: |
517+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
530518
Expand-Archive llvm-mingw-*.zip -DestinationPath .
531519
del llvm-mingw-*.zip
532520
mv llvm-mingw-* c:\llvm-mingw
@@ -588,7 +576,7 @@ jobs:
588576
# enabled, to catch code generation bugs that might trigger asserts, to
589577
# find such regressions early.
590578
linux-test-cross-build-ffmpeg:
591-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
579+
if: false
592580
needs: [linux-asserts]
593581
runs-on: ubuntu-latest
594582
strategy:
@@ -633,8 +621,7 @@ jobs:
633621
# compiler itself, but that only show up at runtime. This is only done
634622
# for scheduled builds.
635623
test-ffmpeg:
636-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
637-
needs: [linux-cross-windows]
624+
if: true
638625
strategy:
639626
fail-fast: false
640627
matrix:
@@ -662,11 +649,9 @@ jobs:
662649
diffutils
663650
pacboy: >-
664651
nasm:p
665-
- uses: actions/download-artifact@v4
666-
with:
667-
name: windows-ucrt-${{matrix.arch}}-toolchain
668652
- name: Unpack toolchain
669653
run: |
654+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417/llvm-mingw-20250417-ucrt-${{matrix.arch}}.zip
670655
unzip -q llvm-mingw-*.zip
671656
rm llvm-mingw-*.zip
672657
mv llvm-mingw-* /llvm-mingw
@@ -688,7 +673,7 @@ jobs:
688673
make -j$(nproc) fate
689674
690675
upload-nightly:
691-
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
676+
if: false
692677
permissions:
693678
contents: write
694679
needs: [linux, linux-cross-aarch64, macos, linux-cross-windows, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]

0 commit comments

Comments
 (0)