-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.29 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and Publish
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
# Required for C#10 features.
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Clear MSVC Redundant Environment Variables
run: echo "Platform=" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append
- name: Setup AutoChangelog
run: npm install -g auto-changelog
- name: Setup Dotnet SDK (8.0)
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
include-prerelease: false
- name: Get Dotnet Info
run: dotnet --info
- name: Build app (win-x64)
run: dotnet publish ShadowRando.Desktop -c Release -r win-x64 --self-contained false /p:PublishSingleFile=true
- name: Build app (linux-x64)
run: dotnet publish ShadowRando.Desktop -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true