Skip to content

Commit

Permalink
Add builds for arm64 platforms (#150)
Browse files Browse the repository at this point in the history
* Add arm64 to goreleaser with build workflow
  • Loading branch information
paulcacheux committed Jul 12, 2022
1 parent f4e6f75 commit 8ed9884
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 18 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: build

on:
push:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: build --skip-validate
27 changes: 9 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,34 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
- name: Unshallow
run: git fetch --prune --unshallow --tags
-
name: Get tag
- name: Get tag
uses: little-core-labs/get-git-tag@v3.0.2
id: tag
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Get Latest Release
- name: Get Latest Release
id: latest_version
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: ${{ github.repository_owner }}
repo: extendeddaemonset
excludes: prerelease, draft
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --skip-publish
env:
GORELEASER_PREVIOUS_TAG: ${{steps.latest_version.outputs.release}}
-
name: Generate Plugin manifest
- name: Generate Plugin manifest
run: ./hack/release/generate-plugin-manifest.sh ${{steps.tag.outputs.tag}}
-
name: Release
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: dist/CHANGELOG.md
Expand All @@ -60,8 +52,7 @@ jobs:
env:
COMMIT_TAG: ${{steps.tag.outputs.tag}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Update new plugin version in krew-index
- name: Update new plugin version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.40
continue-on-error: true
with:
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ builds:
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
main: ./cmd/kubectl-eds/main.go
Expand Down

0 comments on commit 8ed9884

Please sign in to comment.