Merge pull request #141 from umarcor/ci-win-jobs

ci/win: add job 'win-jobs'
This commit is contained in:
Gwenhael Goavec-Merou 2021-12-01 19:45:45 +01:00 committed by GitHub
commit 130060619e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 11 deletions

View File

@ -122,16 +122,32 @@ jobs:
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:
runs-on: windows-latest
needs: win-jobs
strategy:
fail-fast: false
matrix:
include:
- { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 } # Experimental!
- { icon: '🟧', sys: clang64 } # Experimental!
include: ${{ fromJson(needs.win-jobs.outputs.jobs) }}
name: '🚧${{ matrix.icon }} ${{ matrix.sys }} | makepkg'
defaults:
run:
@ -180,16 +196,14 @@ jobs:
win-test:
needs: win-makepkg
needs:
- win-jobs
- win-makepkg
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 } # Experimental!
- { icon: '🟧', sys: clang64 } # Experimental!
include: ${{ fromJson(needs.win-jobs.outputs.jobs) }}
name: '🚦${{ matrix.icon }} ${{ matrix.sys }} | test'
defaults:
run: