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: CI:
strategy: strategy:
matrix: matrix:
os: [ubuntu-20.04, ubuntu-latest] goos: [linux, windows, darwin]
runs-on: ${{ matrix.os }} goarch: [amd64, arm64]
runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -21,5 +22,7 @@ jobs:
version: v1.54.2 version: v1.54.2
- name: Unit Tests - name: Unit Tests
run: ./script/test run: ./script/test
- name: Build
run: GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -o bin/actions-sync main.go
- name: Build and Test - name: Build and Test
run: ./script/test-build run: ./script/test-build
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
script/build #script/build
OUTPUT=$(mktemp) OUTPUT=$(mktemp)
RESULT=-1 RESULT=-1