-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (32 loc) · 952 Bytes
/
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
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
buildx64:
name: Build x64
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0'
- name: Build the solution
run: |
dotnet restore
dotnet test --filter TestCategory!=OriginalIO
dotnet publish -c Release -a x64 --property:PublishDir=build
- name: Package the build
run: |
cd TRRandomizerView/build
dir
Compress-Archive -Path (Get-ChildItem -Exclude *.pdb) -DestinationPath TRRando-x64.zip
- name: Upload the package
uses: actions/upload-artifact@v4
with:
name: TRRando-x64
path: TRRandomizerView/build/TRRando-x64.zip