Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed Jan 6, 2025
1 parent 810e14b commit ecf3755
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/heph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}

0 comments on commit ecf3755

Please sign in to comment.