Skip to content

Commit

Permalink
build-alpine, build-darwin, build-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky committed Oct 20, 2024
1 parent 6119823 commit 51a6ea5
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ jobs:
run: apk add git cmake gcc g++ make go
- name: Test
run: go test -v
build:
strategy:
matrix:
platform: [windows-latest, macos-latest]
runs-on: ${{matrix.platform}}
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -36,8 +33,27 @@ jobs:
go-version: 1.21
- name: Test
run: go test -v
build-darwin:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Test arm64
run: |
export GOARCH=arm64
export GOOS=darwin
go test -v
- name: Test amd64
run: |
export GOARCH=amd64
export GOOS=darwin
go test -v
release:
needs: [build-alpine, build]
needs: [build-alpine, build-windows, build-darwin]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
Expand Down

0 comments on commit 51a6ea5

Please sign in to comment.