diff --git a/.github/workflows/heph.yml b/.github/workflows/heph.yml index e6fce6b9..d28d2fd1 100644 --- a/.github/workflows/heph.yml +++ b/.github/workflows/heph.yml @@ -11,8 +11,24 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - os: [linux, darwin] - arch: [arm64, amd64] + include: + - GOOS: linux + GOARCH: arm64 + runs-on: ubuntu-latest + - GOOS: linux + GOARCH: amd64 + runs-on: ubuntu-latest + - GOOS: darwin + GOARCH: amd64 + runs-on: macos-13 + - GOOS: darwin + GOARCH: arm64 + runs-on: macos-latest + env: + CGO_ENABLED: 0 + GOOS: ${{ matrix.GOOS }} + GOARCH: ${{ matrix.GOARCH }} + steps: - name: Checkout uses: actions/checkout@v4 @@ -52,9 +68,6 @@ jobs: - name: Build env: - CGO_ENABLED: 0 - GOOS: ${{ matrix.os }} - GOARCH: ${{ matrix.arch }} HEPH_VERSION: ${{steps.version.outputs.version}} run: | - go build -ldflags "-s -w -X internal/hversion.Version=$HEPH_VERSION" -o heph_$HEPH_VERSION_${{ matrix.os }}_${{ matrix.arch }} + go build -ldflags "-s -w -X internal/hversion.Version=$HEPH_VERSION" -o heph_${HEPH_VERSION}_${GOOS}_${GOARCH}