diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8621096..89c53d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/script/build b/script/build index 4f8ff95..f1f6079 100755 --- a/script/build +++ b/script/build @@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || { set -x } -go build -o bin/actions-sync main.go \ No newline at end of file +go build -o bin/actions-sync main.go diff --git a/script/test-build b/script/test-build index 5e2da40..ac4793f 100755 --- a/script/test-build +++ b/script/test-build @@ -1,6 +1,6 @@ #!/usr/bin/env bash -script/build +#script/build OUTPUT=$(mktemp) RESULT=-1