-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (48 loc) · 2.24 KB
/
heavy_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
56
57
58
59
60
61
name: Heavy build
on:
workflow_dispatch:
push:
tags:
- "**"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish framework dependent creator
# dotnet command can not handle some of pubxml profiles' data. Using plain commands just to not have to much headache
run: dotnet publish TerrLauncherPackCreator/TerrLauncherPackCreator.csproj --configuration Release --runtime win-x64 -p:PublishSingleFile=true --self-contained false
- name: Publish framework dependent updater
# dotnet command can not handle some of pubxml profiles' data. Using plain commands just to not have to much headache
run: dotnet publish TerrLauncherPackCreatorUpdater/TerrLauncherPackCreatorUpdater.csproj --configuration Release --runtime win-x64 -p:PublishSingleFile=true --self-contained false
- name: Copy all files into upload directory
# mkdir -p creates all directories in path
run: |
mkdir -p to_upload/data
cp TerrLauncherPackCreator/bin/Release/net8.0-windows/win-x64/publish/TerrLauncherPackCreator.exe to_upload/data/TerrLauncherPackCreator.exe
cp TerrLauncherPackCreator/bin/Release/net8.0-windows/win-x64/publish/libwebp_x64.dll to_upload/data/libwebp_x64.dll
cp TerrLauncherPackCreatorUpdater/bin/Release/net8.0-windows/win-x64/publish/updater.exe to_upload/data/updater.exe
mkdir -p to_upload/installer
cp TerrLauncherPackCreatorUpdater/bin/Release/net8.0-windows/win-x64/publish/updater.exe to_upload/installer/installer.exe
- name: Upload data
uses: actions/upload-artifact@v4
with:
name: data-net-8.0-windows-x64-framework-dependent
path: to_upload/data/**
if-no-files-found: error
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: installer-net-8.0-windows-x64-framework-dependent
path: to_upload/installer/**
if-no-files-found: error