mirror of
https://github.com/LANCommander/Borderless1942.git
synced 2026-08-01 02:24:18 -04:00
41 lines
1 KiB
YAML
41 lines
1 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
release:
|
|
types: [ published ]
|
|
|
|
env:
|
|
# Disable the .NET logo in the console output.
|
|
DOTNET_NOLOGO: true
|
|
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
# Disable sending .NET CLI telemetry to Microsoft.
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
|
|
BUILD_ARTIFACT_PATH: ${{github.workspace}}/build-artifacts
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build ${{matrix.os}}
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup dotnet 9.0
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
- name: Build
|
|
run: dotnet publish -c Release --output ${{env.BUILD_ARTIFACT_PATH}} -r win-x64
|
|
- name: Publish artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Borderless1942-Executable
|
|
path: ${{env.BUILD_ARTIFACT_PATH}}
|