Skip to content

Commit

Permalink
Parallelize Github build action (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaytak authored Aug 5, 2020
1 parent 26e69d3 commit 2c32d37
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
dotNetInstallVersion: [3.1.302]
dotNetRunVersion: [netcoreapp3.1]
solution: [Microsoft.Identity.Web.sln]
include:
- DotNetInstallVersion: 5.0.100-preview.7.20366.6
DotNetRunVersion: net5.0
Solution: Microsoft.Identity.Web-without-blasorwasm2-sample.sln

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100-preview.5.20279.10
includePreviewVersions: true # Required for preview versions
- name: Build with dotnet
run: dotnet test -f net5.0 -p:FROM_GITHUB_ACTION=true --configuration Release Microsoft.Identity.Web-without-blasorwasm2-sample.sln # is netstandard2.1
- name: Setup .NET Core 3.1.101
uses: actions/setup-dotnet@v1
- name: Checkout repository
uses: actions/checkout@v2.3.1

- name: Setup .NET ${{ matrix.dotNetInstallVersion }}
uses: actions/setup-dotnet@v1.5.0
with:
dotnet-version: 3.1.101
- name: Build with dotnet
run: dotnet test -f netcoreapp3.1 -p:FROM_GITHUB_ACTION=true --configuration Release Microsoft.Identity.Web.sln
dotnet-version: ${{ matrix.dotNetInstallVersion }}

- name: Build with .NET ${{ matrix.dotNetRunVersion }}
run: dotnet test -f ${{ matrix.dotNetRunVersion }} -p:FROM_GITHUB_ACTION=true --configuration Release ${{ matrix.solution }}

0 comments on commit 2c32d37

Please sign in to comment.