-
Notifications
You must be signed in to change notification settings - Fork 20
43 lines (39 loc) · 1.4 KB
/
dotnet.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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies for program
run: dotnet restore HyoutaToolsCLI/HyoutaToolsCLI.csproj
- name: Build program
run: dotnet build --configuration Release --no-restore HyoutaToolsCLI/HyoutaToolsCLI.csproj
- name: Restore dependencies for tests
run: dotnet restore HyoutaToolsTests/HyoutaToolsTests.csproj
- name: Build tests
run: dotnet build --configuration Release --no-restore HyoutaToolsTests/HyoutaToolsTests.csproj
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal HyoutaToolsTests/HyoutaToolsTests.csproj
- name: Publish
run: dotnet publish --configuration Release --no-build HyoutaToolsCLI/HyoutaToolsCLI.csproj --output _publish
- run: mv LICENSE LICENSE_HyoutaTools
- run: mv utf_tab-sharp/LICENSE LICENSE_utf_tab-sharp
- run: mv zlib-sharp/LICENSE LICENSE_zlib-sharp
- run: mv HyoutaUtils/LICENSE LICENSE_HyoutaUtils
- run: mv LICENSE* _publish
- run: mv README.md _publish
- uses: actions/upload-artifact@v3
with:
name: HyoutaToolsCLI
path: _publish