Skip to content

Commit bc95309

Browse files
committed
Add workflow
1 parent 9908d21 commit bc95309

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/bat.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.24.x]
8+
os: [ubuntu-latest, macos-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- run: make test
16+
build:
17+
strategy:
18+
matrix:
19+
go-version: [1.24.x]
20+
os: [ubuntu-latest, macos-latest]
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-go@v5
25+
with:
26+
go-version: ${{ matrix.go-version }}
27+
- run: make build

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ build-go:
6161
.PHONY: test
6262
test:
6363
# Use package list mode to include all subdirectores. The -count=1 turns off caching.
64-
RUST_BACKTRACE=1 go test -v -count=1 ./...
64+
CGO_ENABLED=1 RUST_BACKTRACE=1 go test -v -count=1 ./...
6565

6666
.PHONY: test-safety
6767
test-safety:

0 commit comments

Comments
 (0)