v1.9.0-pre2 #131
Workflow file for this run
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, pull_request] | |
env: | |
DOTNET_NOLOGO: 1 | |
BUILD_DOTNET_VERSION: 8.0.x | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.BUILD_DOTNET_VERSION }} | |
- name: NuGet Restore | |
run: dotnet restore src/InlineIL.sln | |
- name: Build | |
run: dotnet build --configuration Release --no-restore src/InlineIL.sln | |
- name: NuGet Pack | |
run: dotnet pack --configuration Release --no-build src/InlineIL.sln | |
- name: Upload NuGet | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NuGet | |
path: output/*.nupkg | |
if-no-files-found: error | |
test: | |
name: Test (${{ matrix.configuration }}, C# ${{ matrix.langVersion }}) | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
langVersion: [10, 11, 12] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.BUILD_DOTNET_VERSION }} | |
- name: Test | |
run: dotnet test --configuration ${{ matrix.configuration }} -p:TestAssembliesLangVersion=${{ matrix.langVersion }} src/InlineIL.sln |