Skip to content

Build-Canary

Build-Canary #32

Workflow file for this run

# Credits to @Scighost from Starward for his contributions!
name: Build-Canary
on:
workflow_dispatch:
inputs:
os:
# Use Windows Server 2019 to retain compatibility (WindowsAppSDK last supported OS build)
type: choice
description: "Select Runner image to use for this deployment"
default: "windows-2019"
options:
- "windows-latest"
- "windows-2019"
- "windows-2022"
framework:
# Use net7.0-windows10.0.19041.0 to retain compatibility (WindowsAppSDK last supported OS build)
type: choice
description: "Select .NET Framework version"
default: "net7.0-windows10.0.19041.0"
options:
- "net7.0-windows10.0.22000.0"
- "net7.0-windows10.0.19041.0"
jobs:
build:
runs-on: ${{ github.event.inputs.os }}
strategy:
matrix:
configuration: [Release] # No need to distribute Debug builds
platform: [x64]
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Restore
run: dotnet restore CollapseLauncher
- name: Build
run: |
msbuild CollapseLauncher "-property:Configuration=$env:Configuration;Platform=$env:Platform"
dotnet build CollapseLauncher -c $env:Configuration -p:Platform=$env:Platform -f ${{ github.event.inputs.framework }}
- name: Upload Artifact (Debug)
uses: actions/[email protected]
if: ${{ matrix.configuration == 'Debug' }}
with:
name: collapse_${{ github.sha }}.${{ matrix.platform }}-${{ matrix.configuration }}
path: ./CollapseLauncher/bin/x64/Debug/net7.0-windows10.0.22000.0/
- name: Upload Artifact (Release)
uses: actions/[email protected]
if: ${{ matrix.configuration == 'Release' }}
with:
name: collapse_${{ github.sha }}.${{ matrix.platform }}-${{ matrix.configuration }}
path: ./CollapseLauncher/bin/x64/Release/net7.0-windows10.0.22000.0/