-
Notifications
You must be signed in to change notification settings - Fork 17
63 lines (51 loc) · 2.12 KB
/
devbuild.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
56
57
58
59
60
61
62
63
name: Windows Dev Build and Artifact
on:
push:
branches:
- master
env:
WPF_PROJECT_FILE: ./SA-Mod-Manager/SAModManager.csproj
ARTIFACT_PATH: ./source/DevBuild
jobs:
build:
name: ${{ matrix.configuration }} Dev Build
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'recursive'
- name: Add Git hash to resources
working-directory: ${{env.GITHUB_WORKSPACE}}
run: echo ${{github.sha}} > SA-Mod-Manager/Resources/Version.txt
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Publish 64-bit WPF application
working-directory: ${{env.GITHUB_WORKSPACE}}
run: dotnet publish -p:PublishSingleFile=true -r win-x64 -c ${{ matrix.configuration }} --self-contained false
- name: CleanUp Misc Files (64-bit)
working-directory: ${{github.workspace}}\bin\${{ matrix.configuration }}\net8.0-windows7.0\win-x64\publish
run: del SAModManager.dll.config, SAModManager.pdb
- name: Publish 32-bit WPF application
working-directory: ${{env.GITHUB_WORKSPACE}}
run: dotnet publish -p:PublishSingleFile=true -r win-x86 -c ${{ matrix.configuration }} --self-contained false
- name: CleanUp Misc Files (32-bit)
working-directory: ${{github.workspace}}\bin\${{ matrix.configuration }}\net8.0-windows7.0\win-x86\publish
run: del SAModManager.dll.config, SAModManager.pdb
# Step to upload the dev build artifact
- name: Upload 64-bit Build Artifact
uses: actions/upload-artifact@v3
with:
name: SAModManager_x64_${{ matrix.configuration }}
path: bin/${{ matrix.configuration }}/net8.0-windows7.0/win-x64/publish
- name: Upload 32-bit Build Artifact
uses: actions/upload-artifact@v3
with:
name: SAModManager_x86_${{ matrix.configuration }}
path: bin/${{ matrix.configuration }}/net8.0-windows7.0/win-x86/publish