-
Notifications
You must be signed in to change notification settings - Fork 1
121 lines (90 loc) · 2.33 KB
/
ci.yml
File metadata and controls
121 lines (90 loc) · 2.33 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Go CI
on:
push:
pull_request:
jobs:
ubuntu:
name: Build and Test on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.12'
- name: Install Boost library
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Build Kernel
run: make build-kernel
- name: Build
run: make build
- name: Run tests
run: make test
macos:
name: Build and Test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.12'
- name: Install Boost library
run: |
brew install boost
- name: Build Kernel
run: make build-kernel
- name: Build
run: make build
- name: Run tests
run: make test
windows:
name: Build and Test on Windows
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: Set up MSYS2 with MinGW
uses: msys2/setup-msys2@v2.31.0
with:
msystem: MINGW64
update: false
path-type: inherit
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-boost
make
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.12'
- name: Build Kernel
run: make build-kernel
- name: Build
run: make build
- name: Run tests
run: make test
nix:
name: Build, Test, and Lint with Nix (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake
run: nix flake check --show-trace
- name: Build Kernel
run: nix develop --command make build-kernel
- name: Build
run: nix develop --command make build
- name: Run tests
run: nix develop --command make test
- name: Run linter
run: nix develop --command make lint