Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM64 build support #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jobs:
uses: engineerd/[email protected]
with:
version: "v0.6.1"
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required to fix github actions see here



- name: 'Set KUBECONFIG env var'
run: |
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ RELEASE := $(shell git describe --tags)
release-binaries:
GOOS=linux GOARCH=amd64 go build -o terraform.d/plugins/linux_amd64/terraform-provider-kustomization_$(RELEASE)
tar -caf terraform-provider-kustomization-linux-amd64_$(RELEASE).tgz terraform.d/plugins/linux_amd64/terraform-provider-kustomization_$(RELEASE)

GOOS=darwin GOARCH=amd64 go build -o terraform.d/plugins/darwin_amd64/terraform-provider-kustomization_$(RELEASE)
tar -caf terraform-provider-kustomization-darwin-amd64_$(RELEASE).tgz terraform.d/plugins/darwin_amd64/terraform-provider-kustomization_$(RELEASE)
tar -caf terraform-provider-kustomization-darwin-arm64_$(RELEASE).tgz terraform.d/plugins/darwin_amd64/terraform-provider-kustomization_$(RELEASE)

GOOS=darwin GOARCH=arm64 go build -o terraform.d/plugins/darwin_arm64/terraform-provider-kustomization_$(RELEASE)
tar -caf terraform-provider-kustomization-darwin-arm64_$(RELEASE).tgz terraform.d/plugins/darwin_arm64/terraform-provider-kustomization_$(RELEASE)

GOOS=windows GOARCH=amd64 go build -o terraform.d/plugins/windows_amd64/terraform-provider-kustomization_$(RELEASE)
tar -caf terraform-provider-kustomization-windows-amd64_$(RELEASE).tgz terraform.d/plugins/windows_amd64/terraform-provider-kustomization_$(RELEASE)
tar -caf terraform-provider-kustomization-windows-amd64_$(RELEASE).tgz terraform.d/plugins/windows_amd64/terraform-provider-kustomization_$(RELEASE)
Loading