-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (42 loc) · 1.24 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
name: .net build
on:
push:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'Test'
workflow_dispatch:
env:
DOTNET_VERSION: '8.0.x' # The .NET SDK version to use
BUILD_DIR: 'SekaiTools.Nightly'
RESOURCE_DIR: 'resource'
PROJECT_NAME: 'SekaiToolsGUI'
SEVEN_ZIP_EXE: './resource/vapourSynth/7z.exe'
jobs:
build:
name: build-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
# Each job run contains these five steps
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Dotnet Build
run: |
dotnet restore ${{ env.PROJECT_NAME }}
dotnet build ${{ env.PROJECT_NAME }} --configuration Release --no-restore -o ${{ env.BUILD_DIR }}
- name: Sort Artifacts
run: |
cp -r ${{ env.RESOURCE_DIR }} ${{ env.BUILD_DIR }}
rm -r ${{ env.BUILD_DIR }}/runtimes/win-x86
rm -r ${{ env.BUILD_DIR }}/runtimes/win-arm64
rm -r ${{ env.BUILD_DIR }}/*.pdb
- uses: actions/upload-artifact@v4
with:
name: SekaiTools.Nightly
path: ${{ env.BUILD_DIR }}