ci/win: add job 'win-jobs'
This commit is contained in:
parent
7184817e6f
commit
94b6f006b1
|
|
@ -124,16 +124,32 @@ jobs:
|
||||||
openFPGALoader --detect || true
|
openFPGALoader --detect || true
|
||||||
|
|
||||||
|
|
||||||
|
win-jobs:
|
||||||
|
name: ⬜ Generate list of MSYS2 jobs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
jobs: ${{ steps.jobs.outputs.jobs }}
|
||||||
|
steps:
|
||||||
|
- name: Generate list of jobs
|
||||||
|
shell: python
|
||||||
|
id: jobs
|
||||||
|
run: |
|
||||||
|
jobs = [
|
||||||
|
{ 'icon': '⬛', 'sys': 'mingw32' },
|
||||||
|
{ 'icon': '🟦', 'sys': 'mingw64' },
|
||||||
|
{ 'icon': '🟨', 'sys': 'ucrt64' }, # Experimental!
|
||||||
|
{ 'icon': '🟧', 'sys': 'clang64' }, # Experimental!
|
||||||
|
]
|
||||||
|
print(f"::set-output name=jobs::{jobs!s}")
|
||||||
|
|
||||||
|
|
||||||
win-makepkg:
|
win-makepkg:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
needs: win-jobs
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include: ${{ fromJson(needs.win-jobs.outputs.jobs) }}
|
||||||
- { icon: '⬛', sys: mingw32 }
|
|
||||||
- { icon: '🟦', sys: mingw64 }
|
|
||||||
- { icon: '🟨', sys: ucrt64 } # Experimental!
|
|
||||||
- { icon: '🟧', sys: clang64 } # Experimental!
|
|
||||||
name: '🚧${{ matrix.icon }} ${{ matrix.sys }} | makepkg'
|
name: '🚧${{ matrix.icon }} ${{ matrix.sys }} | makepkg'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
@ -182,16 +198,14 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
win-test:
|
win-test:
|
||||||
needs: win-makepkg
|
needs:
|
||||||
|
- win-jobs
|
||||||
|
- win-makepkg
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include: ${{ fromJson(needs.win-jobs.outputs.jobs) }}
|
||||||
- { icon: '⬛', sys: mingw32 }
|
|
||||||
- { icon: '🟦', sys: mingw64 }
|
|
||||||
- { icon: '🟨', sys: ucrt64 } # Experimental!
|
|
||||||
- { icon: '🟧', sys: clang64 } # Experimental!
|
|
||||||
name: '🚦${{ matrix.icon }} ${{ matrix.sys }} | test'
|
name: '🚦${{ matrix.icon }} ${{ matrix.sys }} | test'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue