-
-
Notifications
You must be signed in to change notification settings - Fork 24
57 lines (55 loc) · 3.32 KB
/
release-manager.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
name: Prepare Log Manager release
on:
push:
tags:
- 'manager-v*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
# This is a workaround for issue https://github.com/actions/virtual-environments/issues/1090,
# which causes to nuget restores to fail
- name: Clean NuGet cache
run: dotnet nuget locals all --clear
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Package Log Manager (Windows, WPF)
run: dotnet publish ArcdpsLogManager.Wpf --configuration Release -r win-x64 --self-contained=false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/win64/
- name: Package Log Manager (Windows, WPF, self-contained)
run: dotnet publish ArcdpsLogManager.Wpf --configuration Release -r win-x64 --self-contained=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/win64-sc/
- name: Package Log Manager (Linux, GTK)
run: dotnet publish ArcdpsLogManager.Gtk --configuration Release -r linux-x64 --self-contained=false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/linux64/
- name: Package Log Manager (Linux, GTK, self-contained)
run: dotnet publish ArcdpsLogManager.Gtk --configuration Release -r linux-x64 --self-contained=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/linux64-sc/
- name: Prettify executable filenames
run: |
mv artifacts/manager/win64/GW2Scratch.ArcdpsLogManager.Wpf.exe artifacts/manager/win64/ArcdpsLogManager.exe
mv artifacts/manager/win64-sc/GW2Scratch.ArcdpsLogManager.Wpf.exe artifacts/manager/win64-sc/ArcdpsLogManager.exe
mv artifacts/manager/linux64/GW2Scratch.ArcdpsLogManager.Gtk artifacts/manager/linux64/ArcdpsLogManager
mv artifacts/manager/linux64-sc/GW2Scratch.ArcdpsLogManager.Gtk artifacts/manager/linux64-sc/ArcdpsLogManager
- name: Build archives
run: |
Compress-Archive artifacts/manager/win64/ArcdpsLogManager.exe artifacts/manager/win64/Log.Manager.Windows.zip
Compress-Archive artifacts/manager/win64-sc/ArcdpsLogManager.exe artifacts/manager/win64-sc/Log.Manager.Windows.self-contained.zip
Compress-Archive artifacts/manager/linux64/ArcdpsLogManager artifacts/manager/linux64/Log.Manager.Linux.zip
Compress-Archive artifacts/manager/linux64-sc/ArcdpsLogManager artifacts/manager/linux64-sc/Log.Manager.Linux.self-contained.zip
- name: Prepare release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
artifacts/manager/win64/Log.Manager.Windows.zip
artifacts/manager/win64-sc/Log.Manager.Windows.self-contained.zip
artifacts/manager/linux64/Log.Manager.Linux.zip
artifacts/manager/linux64-sc/Log.Manager.Linux.self-contained.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}