-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (84 loc) · 2.49 KB
/
ci.yml
File metadata and controls
104 lines (84 loc) · 2.49 KB
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
# (c) 2025 and onwards The vChewing Project (LGPL v3.0 License or later).
# ====================
# This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
# ============================================================
# Swift (Linux)
# ============================================================
swift-linux:
name: Swift (Linux)
runs-on: ubuntu-latest
steps:
- name: Swift Setup
uses: SwiftyLab/setup-swift@latest
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Test
run: swift test -v
# ============================================================
# Swift (macOS)
# ============================================================
swift-macos:
name: Swift (macOS)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app
- name: Build
run: swift build -v
- name: Test
run: swift test -v
# ============================================================
# .NET (Linux)
# ============================================================
dotnet-linux:
name: .NET (Linux)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore
working-directory: WinNT
- name: Build
run: dotnet build --no-restore -v normal
working-directory: WinNT
- name: Test
run: dotnet test --no-build -v normal
working-directory: WinNT
# ============================================================
# .NET (Windows)
# ============================================================
dotnet-windows:
name: .NET (Windows)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore
working-directory: WinNT
- name: Build
run: dotnet build --no-restore -v normal
working-directory: WinNT
- name: Test
run: dotnet test --no-build -v normal
working-directory: WinNT