-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (37 loc) · 993 Bytes
/
ci.yaml
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
name: CI
on:
push:
permissions:
contents: read
packages: read
# In the event that there is a new push to the ref, cancel any running jobs because there are now obsolete, and wasting
# resources.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rui314/setup-mold@0bf4f07ef9048ec62a45f9dbf2f098afa49695f0
- name: Build
run: make build
lint:
name: Lint
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: rui314/setup-mold@0bf4f07ef9048ec62a45f9dbf2f098afa49695f0
- name: Check formatting and clippy
run: make lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rui314/setup-mold@0bf4f07ef9048ec62a45f9dbf2f098afa49695f0
- name: Run unit tests
run: make test