Build #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: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
# Restore the application to populate the obj folder with RuntimeIdentifiers | |
- name: Restore the application | |
run: dotnet restore | |
- name: Create Linux artifact | |
run: dotent publish --configuration ${{ matrix.configuration }} --runtime linux-x64 --self-contained false -p:PublishReadyToRun=false Seed --output Publish/Linux -p:DebugType=None -p:DebugSymbols=false | |
- name: Zip Linux artifact | |
run: Compress-Archive -Path Publish/Linux -DestinationPath Publish/Linux.zip | |
- name: Upload Linux build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Linux | |
path: Publish/Linux.zip | |
- name: Create Windows artifact | |
run: dotent publish --configuration ${{ matrix.configuration }} --runtime win-x64 --self-contained false -p:PublishReadyToRun=false Seed --output Publish/Windows -p:DebugType=None -p:DebugSymbols=false | |
- name: Zip Windows artifact | |
run: Compress-Archive -Path Publish/Windows -DestinationPath Publish/Windows.zip | |
- name: Upload Windows build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Windows | |
path: Publish/Windows.zip |