diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-19 09:19:12 +0300 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-19 09:19:12 +0300 |
| commit | 5827f5a465b10df31596e6f77125160887eb652a (patch) | |
| tree | 0bda781ac4a68582ad240910cf80517c0808fa5c /.github/workflows | |
| parent | lmao, the prefix & windres outputs literally never worked (diff) | |
| download | setup-mingw-5827f5a465b10df31596e6f77125160887eb652a.tar.gz setup-mingw-5827f5a465b10df31596e6f77125160887eb652a.zip | |
workflows/test: check the prefix output
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a6534f..5365e7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,6 +41,9 @@ jobs: - windows-2022 - windows-2025 - windows-latest + include: + - {platform: x86, expected_prefix: i686-w64-mingw32} + - {platform: x64, expected_prefix: x86_64-w64-mingw32} runs-on: ${{ matrix.os }} name: | Test: ${{ matrix.os }} / ${{ matrix.platform }} @@ -61,6 +64,11 @@ jobs: with: platform: ${{ matrix.platform }} cc: 1 + - name: Check prefix + env: + PREFIX: ${{ steps.setup.outputs.prefix }} + run: | + $env:PREFIX -eq '${{ matrix.expected_prefix }}' -or $(throw "Unexpected prefix: $env:PREFIX") - name: Build threads.exe env: GXX: ${{ steps.setup.outputs.gxx }} @@ -97,10 +105,15 @@ jobs: uses: $/ with: version: ${{ matrix.version }} - - name: Verify the version + - name: Verify version uses: $/.github/actions/check-cc with: version: ${{ matrix.version }} + - name: Check prefix + env: + PREFIX: ${{ steps.setup.outputs.prefix }} + run: | + $env:PREFIX -eq 'x86_64-w64-mingw32' -or $(throw "Unexpected prefix: $env:PREFIX") - name: Build threads.exe env: GXX: ${{ steps.setup.outputs.gxx }} |
