Build with target framework variations #5
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: | |
paths_ignore: | |
- '**/*.md' | |
pull_request: | |
paths_ignore: | |
- '**/*.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Build project | |
run: | | |
dotnet publish -c Release --framework netstandard2.0 --runtime win-x64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework netstandard2.0 --runtime linux-x64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework netstandard2.0 --runtime win-arm64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework netstandard2.0 --runtime linux-arm64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework net9.0 --runtime win-x64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework net9.0 --runtime linux-x64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework net9.0 --runtime win-arm64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --framework net9.0 --runtime linux-arm64 ${{ github.workspace }}/Spz.NET/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: spz-net | |
path: ${{ github.workspace }}/Spz.NET/bin/Release |