-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.3 KB
/
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
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-13
- macos-14
- ubuntu-22.04
- windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.work
cache-dependency-path: "**/go.sum"
- name: run tests and lints
run: go run ./build check
test-bsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.work
- name: Build
run: go test -c ./...
env:
GOOS: freebsd
- name: Test
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
version: "14.0"
shell: bash
# It seems unlikely to have OS-dependent code outside the allocator
# package even when adding new features so simply specify it here for
# now. We will need to iterate over packages if we want to run more
# in the future.
run: ./allocator.test -test.v -test.short
sync_files: runner-to-vm