Download latest .NET sdk for build job #3
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: Get latest .NET | |
run: sudo apt install dotnet-sdk-9.0 | |
- name: Build project | |
run: | | |
dotnet publish -c Release --runtime win-x64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --runtime linux-x64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --runtime win-arm64 ${{ github.workspace }}/Spz.NET/ | |
dotnet publish -c Release --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 |