Make GH Actions use matrix for runs-on
This commit is contained in:
12
.github/workflows/CI.yml
vendored
12
.github/workflows/CI.yml
vendored
@@ -23,11 +23,18 @@ on:
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-2019
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
env:
|
||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runs-on: [windows-2019, windows-latest]
|
||||
include:
|
||||
- runs-on: windows-latest
|
||||
vsver: VS2022
|
||||
- runs-on: windows-2019
|
||||
vsver: VS2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@@ -51,11 +58,12 @@ jobs:
|
||||
- name: Upload xenia artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: xenia_canary
|
||||
name: xenia_canary_${{ matrix.vsver }}
|
||||
path: artifacts\xenia_canary
|
||||
if-no-files-found: error
|
||||
- name: Create release
|
||||
if: |
|
||||
matrix.runs-on == 'windows-2019' &&
|
||||
github.repository == 'xenia-canary/xenia-canary' &&
|
||||
github.event.action != 'pull_request' &&
|
||||
contains(github.ref, 'refs/heads/canary')
|
||||
|
||||
Reference in New Issue
Block a user