-
-
Notifications
You must be signed in to change notification settings - Fork 15
64 lines (49 loc) · 1.63 KB
/
ci.yml
File metadata and controls
64 lines (49 loc) · 1.63 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.200'
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- name: Build cfspeedtest
working-directory: src/cfspeedtest
run: go build -trimpath ./...
- name: Build cfspeedtest (arm64 cross-compile)
working-directory: src/cfspeedtest
run: GOOS=linux GOARCH=arm64 go build -trimpath ./...
- name: Build uwnspeedtest
working-directory: src/uwnspeedtest
run: go build -trimpath ./...
- name: Build uwnspeedtest (arm64 cross-compile)
working-directory: src/uwnspeedtest
run: GOOS=linux GOARCH=arm64 go build -trimpath ./...
- name: Build wansteer
working-directory: src/wansteer
run: go build -trimpath ./...
- name: Build wansteer (arm64 cross-compile)
working-directory: src/wansteer
run: GOOS=linux GOARCH=arm64 go build -trimpath ./...
- name: Test wansteer
working-directory: src/wansteer
run: go test ./...
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
env:
FLUENT_ASSERTIONS_LICENSED: ${{ secrets.FLUENT_ASSERTIONS_LICENSED }}