Skip to content

Commit 96546e1

Browse files
committed
Added some cross-os builds
1 parent 15b0a66 commit 96546e1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,24 @@ jobs:
3434
run: GOARCH=arm go build -v ./...
3535
shell: bash
3636

37+
cross-os-build:
38+
strategy:
39+
matrix:
40+
go-os-pairs:
41+
- "freebsd amd64"
42+
- "openbsd amd64"
43+
- "openbsd 386"
44+
- "openbsd arm"
45+
46+
runs-on: "ubuntu-latest"
47+
48+
steps:
49+
- uses: actions/checkout@v1
50+
- uses: actions/setup-go@v1
51+
with:
52+
go-version: "1.13"
53+
- name: Cross-build
54+
run: |
55+
set ${{ matrix.go-os-pairs }}
56+
GOOS=$1 GOARCH=$2 go build -v ./...
57+
shell: bash

0 commit comments

Comments
 (0)