Skip to content

Commit

Permalink
fix: go compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Feb 23, 2024
1 parent 5941e46 commit fba2a29
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ jobs:
- name: Install dependencies
working-directory: backend
run: go get ./...
- name: Set up CC for cross-compilation
if: matrix.goarch == 'arm64'
run: echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Build
working-directory: backend
run: |
GOOS=linux CGO_ENABLED=1 GOARCH=${{ matrix.goarch }} go build -o build/kubevoyage-${{ matrix.goarch }} ./cmd/kubevoyage
GOOS=linux GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 go build -o build/kubevoyage-${{ matrix.goarch }} ./cmd/kubevoyage
#- name: Test with the Go CLI
# run: go test
- name: Archive production artifacts
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ jobs:
- name: Install dependencies
working-directory: backend
run: go get ./...
- name: Set up CC for cross-compilation
if: matrix.goarch == 'arm64'
run: echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Build
working-directory: backend
run: |
GOOS=linux CGO_ENABLED=1 GOARCH=${{ matrix.goarch }} go build -o build/kubevoyage-${{ matrix.goarch }} ./cmd/kubevoyage
GOOS=linux GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 go build -o build/kubevoyage-${{ matrix.goarch }} ./cmd/kubevoyage
#- name: Test with the Go CLI
# run: go test
- name: Archive production artifacts
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ jobs:
- name: Install dependencies
working-directory: backend
run: go get ./...
- name: Set up CC for cross-compilation
if: matrix.goarch == 'arm64'
run: echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Build
working-directory: backend
run: |
GOOS=linux CGO_ENABLED=1 GOARCH=${{ matrix.goarch }} go build -o build/kubevoyage-${{ matrix.goarch }} ./cmd/kubevoyage
GOOS=linux GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 go build -o build/kubevoyage-${{ matrix.goarch }} ./cmd/kubevoyage
#- name: Test with the Go CLI
# run: go test
- name: Archive production artifacts
Expand Down

0 comments on commit fba2a29

Please sign in to comment.