Merge pull request #108 from Aiko-IT-Systems/release/3_1_0 #412
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 Library" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true | |
jobs: | |
build: | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: Build library | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4.2.0 | |
with: | |
dotnet-version: | | |
9.x | |
8.x | |
- name: Restore dependencies | |
run: dotnet restore --no-cache -f -v minimal | |
- name: Build library | |
run: dotnet build -c Release -v normal --no-restore | |
- name: Test library | |
run: dotnet test -v normal -c Release --no-restore --no-build |