Skip to content

Commit

Permalink
Build logcli for multiple architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ntap-fge committed Dec 1, 2023
1 parent 71af6fa commit 05a4923
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
arch: [amd64, arm64]
env:
GOARCH: ${{ matrix.arch }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -29,6 +34,8 @@ jobs:
- name: Install Go dependencies
run: |
# install build tools from native arch
unset GOARCH
go install github.com/golang/protobuf/[email protected]
go install github.com/gogo/protobuf/[email protected]
Expand All @@ -41,6 +48,6 @@ jobs:
- name: Upload logcli as artifact
uses: actions/upload-artifact@v3
with:
name: logcli_amd64
path: logcli_amd64.zip
name: logcli_${{ matrix.arch }}
path: logcli_${{ matrix.arch }}.zip
retention-days: 3

0 comments on commit 05a4923

Please sign in to comment.