-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (109 loc) · 5.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: JishoTangoAssistant Build
on:
push:
branches:
- "master"
paths-ignore:
- ".github/**"
- "!.github/workflows/build.yml"
- ".gitignore"
- ".gitattributes"
- "LICENSE"
- "README.md"
pull_request:
branches:
- "master"
paths-ignore:
- ".github/**"
- "!.github/workflows/build.yml"
- ".gitignore"
- ".gitattributes"
- "LICENSE"
- "README.md"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
dotnet-version: ['8.0']
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build JishoTangoAssistant --no-restore --configuration Release --property:OutputPath=build/JishoTangoAssistant
- name: Test
run: dotnet test --no-restore --configuration Release --verbosity normal --property:TestResultsDirectory=build/tests
- name: Packaging workflow data as artifacts
run: mkdir deploy && cp -r JishoTangoAssistant/build/JishoTangoAssistant deploy/ && ls ./deploy/JishoTangoAssistant
- name: Upload to artifact (Windows)
uses: actions/upload-artifact@v4
with:
name: JishoTangoAssistant-${{ matrix.os }}
path: |
./deploy/JishoTangoAssistant/**
!./deploy/JishoTangoAssistant/runtimes/browser-wasm
!./deploy/JishoTangoAssistant/runtimes/linux-arm
!./deploy/JishoTangoAssistant/runtimes/linux-arm64
!./deploy/JishoTangoAssistant/runtimes/linux-armel
!./deploy/JishoTangoAssistant/runtimes/linux-mips64
!./deploy/JishoTangoAssistant/runtimes/linux-musl-arm
!./deploy/JishoTangoAssistant/runtimes/linux-musl-arm64
!./deploy/JishoTangoAssistant/runtimes/linux-ppc64le
!./deploy/JishoTangoAssistant/runtimes/linux-s390x
!./deploy/JishoTangoAssistant/runtimes/linux-x64
!./deploy/JishoTangoAssistant/runtimes/linux-x86
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-arm64
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-x64
!./deploy/JishoTangoAssistant/runtimes/osx
!./deploy/JishoTangoAssistant/runtimes/osx-arm64
!./deploy/JishoTangoAssistant/runtimes/osx-x64
!./deploy/JishoTangoAssistant/runtimes/browser-wasm/**
!./deploy/JishoTangoAssistant/runtimes/linux-arm/**
!./deploy/JishoTangoAssistant/runtimes/linux-arm64/**
!./deploy/JishoTangoAssistant/runtimes/linux-armel/**
!./deploy/JishoTangoAssistant/runtimes/linux-mips64/**
!./deploy/JishoTangoAssistant/runtimes/linux-musl-arm/**
!./deploy/JishoTangoAssistant/runtimes/linux-musl-arm64/**
!./deploy/JishoTangoAssistant/runtimes/linux-ppc64le/**
!./deploy/JishoTangoAssistant/runtimes/linux-s390x/**
!./deploy/JishoTangoAssistant/runtimes/linux-x64/**
!./deploy/JishoTangoAssistant/runtimes/linux-x86/**
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-arm64/**
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-x64/**
!./deploy/JishoTangoAssistant/runtimes/osx/**
!./deploy/JishoTangoAssistant/runtimes/osx-arm64/**
!./deploy/JishoTangoAssistant/runtimes/osx-x64/**
if: matrix.os == 'windows-latest'
- name: Upload to artifact (Linux)
uses: actions/upload-artifact@v3
with:
name: JishoTangoAssistant-${{ matrix.os }}
path: |
./deploy/JishoTangoAssistant/**
!./deploy/JishoTangoAssistant/runtimes/browser-wasm
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-arm64
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-x64
!./deploy/JishoTangoAssistant/runtimes/osx
!./deploy/JishoTangoAssistant/runtimes/osx-arm64
!./deploy/JishoTangoAssistant/runtimes/osx-x64
!./deploy/JishoTangoAssistant/runtimes/win-arm
!./deploy/JishoTangoAssistant/runtimes/win-arm64
!./deploy/JishoTangoAssistant/runtimes/win-x64
!./deploy/JishoTangoAssistant/runtimes/win-x86
!./deploy/JishoTangoAssistant/runtimes/browser-wasm/**
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-arm64/**
!./deploy/JishoTangoAssistant/runtimes/maccatalyst-x64/**
!./deploy/JishoTangoAssistant/runtimes/osx/**
!./deploy/JishoTangoAssistant/runtimes/osx-arm64/**
!./deploy/JishoTangoAssistant/runtimes/osx-x64/**
!./deploy/JishoTangoAssistant/runtimes/win-arm/**
!./deploy/JishoTangoAssistant/runtimes/win-arm64/**
!./deploy/JishoTangoAssistant/runtimes/win-x64/**
!./deploy/JishoTangoAssistant/runtimes/win-x86/**
if: matrix.os == 'ubuntu-latest'