-
Notifications
You must be signed in to change notification settings - Fork 22
61 lines (56 loc) · 1.3 KB
/
ci.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: CI
on: [push]
jobs:
build-windows:
name: CI (Windows)
runs-on: windows-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore
run: |
dotnet tool restore
dotnet paket restore
- name: Build
run: .\build.cmd -t Build
- name: Pack
run: |
.\build.cmd -t PackAll
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: interstellar-windows
path: artifacts
- name: Test
run: |
.\build.cmd -t Test -- Release
build-macos:
name: CI (macOS)
runs-on: macos-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore
run: |
sudo dotnet workload install macos
dotnet tool restore
dotnet paket restore
dotnet restore Interstellar.MacOS.sln
- name: Build
run: ./build.sh -t Build
- name: Pack
run: ./build.sh -t PackAll
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: interstellar-macos
path: artifacts/
- name: Test
run: |
./build.sh -t Test