-
-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (51 loc) · 1.31 KB
/
build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2021 Roxy Light
# SPDX-License-Identifier: ISC
name: Build
on:
- push
- pull_request
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.21", "1.20"]
arch: [amd64]
include:
- os: ubuntu-latest
go: "1.20"
arch: "386"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run tests with race detector
run: go test -mod=readonly -race -tags="libc.memgrind" -v ./...
if: ${{ matrix.arch == 'amd64' }}
env:
GOARCH: ${{ matrix.arch }}
- name: Run tests without race detector
run: go test -mod=readonly -v -tags="libc.memgrind" ./...
if: ${{ matrix.arch != 'amd64' }}
env:
GOARCH: ${{ matrix.arch }}
migrate:
name: Migration Tool
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Run tests
run: go test -mod=readonly -race -v ./...
working-directory: ./cmd/zombiezen-sqlite-migrate