init with atomic and semaphore lock #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
- releases/* | |
tags: | |
- releases/* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build ${{ matrix.display-name }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
configuration: ['debug', 'release'] | |
include: | |
- configuration: 'debug' | |
display-name: 'Debug' | |
- configuration: 'release' | |
display-name: 'Release' | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 9.0.x | |
- name: Build | |
run: dotnet build --configuration ${{ matrix.configuration }} | |
test: | |
name: Test ${{ matrix.display-name }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
dotnet-version: ['8.0', '9.0'] | |
include: | |
- dotnet-version: '8.0' | |
display-name: '.NET 8.0' | |
framework: 'net8' | |
prefix: 'net8' | |
install-version: '8.0.x' | |
- dotnet-version: '9.0' | |
display-name: '.NET 9.0' | |
framework: 'net9' | |
prefix: 'net9' | |
install-version: '9.0.x' | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup ${{ matrix.display-name }} | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ matrix.install-version }} | |
- name: Setup .NET 9.0 | |
uses: actions/setup-dotnet@v1 | |
if: ${{ matrix.install-version != '9.0.x' }} | |
with: | |
dotnet-version: 9.0.x | |
- name: Test | |
id: tests | |
continue-on-error: true # proceed if tests fail to allow for the report generation in master or next step failure in PR | |
run: | | |
dotnet test \ | |
--framework ${{ matrix.framework }} \ |