chore: Updates workflow to fix Fedora 35/36 (#1161)

This commit is contained in:
Kamron Batman 2022-09-04 22:21:50 -07:00 committed by GitHub
parent caa72bcc81
commit 5a374e75c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 8 deletions

View file

@ -7,7 +7,7 @@ on:
branches: [main] branches: [main]
jobs: jobs:
build: build-macos:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
name: Build (${{ matrix.name }}) name: Build (${{ matrix.name }})
strategy: strategy:
@ -31,3 +31,31 @@ jobs:
run: ./publish.cmd run: ./publish.cmd
- name: Test - name: Test
run: dotnet test --no-restore run: dotnet test --no-restore
build-linux:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
name: Build (${{ matrix.name }})
strategy:
fail-fast: false
matrix:
include:
- container: fedora:35
name: Fedora 35
- container: fedora:36
name: Fedora 36
steps:
- name: Install Prerequisites
run: dnf makecache --refresh && dnf install -y findutils libicu
- uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.400
- name: Build
run: ./publish.cmd
- name: Test
run: dotnet test --no-restore

View file

@ -9,7 +9,7 @@ variables:
jobs: jobs:
- job: BuildWindows - job: BuildWindows
displayName: 'Windows Server 2019' displayName: 'Windows Server 2022'
pool: pool:
vmImage: 'windows-latest' vmImage: 'windows-latest'
@ -40,12 +40,6 @@ jobs:
'Ubuntu 20': 'Ubuntu 20':
containerImage: mcr.microsoft.com/dotnet/sdk:6.0-focal containerImage: mcr.microsoft.com/dotnet/sdk:6.0-focal
os: ubuntu.20.04 os: ubuntu.20.04
'Fedora 35':
containerImage: fedora:35
os: fedora.35
'Fedora 36':
containerImage: fedora:36
os: fedora.36
displayName: Linux displayName: Linux