testing new matrix build in ci workflow

This commit is contained in:
Shawn Hartsell
2024-04-22 17:35:16 -05:00
parent cbbe0d523c
commit b47191d0e7
3 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -6,8 +6,9 @@ jobs:
CI:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -21,5 +22,7 @@ jobs:
version: v1.54.2
- name: Unit Tests
run: ./script/test
- name: Build
run: GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -o bin/actions-sync main.go
- name: Build and Test
run: ./script/test-build
+1 -1
View File
@@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || {
set -x
}
go build -o bin/actions-sync main.go
go build -o bin/actions-sync main.go
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
script/build
#script/build
OUTPUT=$(mktemp)
RESULT=-1