-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 934 Bytes
/
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
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
lints:
name: Lints
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
- name: Check Go fmt
run: nix develop --command sh -c 'gofmt -l . && test -z "$(gofmt -l .)"'
build-x86_64-linux:
name: Build x86_64 Linux
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build server
run: nix build --print-build-logs .#packages.x86_64-linux.bonk
- name: Build docker image
run: |
nix build .#packages.x86_64-linux.dockerImage