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 arm support #83

Merged
merged 5 commits into from
Dec 13, 2024
Merged

add arm support #83

merged 5 commits into from
Dec 13, 2024

Conversation

unclesamwk
Copy link
Contributor

No description provided.

.github/workflows/release.yaml Outdated Show resolved Hide resolved
Comment on lines 28 to 37
- name: Build binaries for ${{ matrix.arch }}
run: |
mkdir -p dist
go build -o dist/myapp-${{ matrix.arch }} .

- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: binaries-${{ matrix.arch }}
path: dist/myapp-${{ matrix.arch }}
Copy link
Member

Choose a reason for hiding this comment

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

Goreleaser already builds the binaries and images for all required architectures. A separate Github matrix build is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i means that the change is obsolet? Can you help me please to finish adding arm build support?

Copy link
Member

Choose a reason for hiding this comment

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

Depends; if you only need the binaries, your additional entry in .goreleaser.yml is sufficient. If you need a multi-arch Docker image, this would be a bit more work (look at the .goreleaser.yml of the mittwald/kubernetes-replicator project for reference).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i only need arm64 binary, i reverted other changes

@martin-helmich martin-helmich merged commit 61096a6 into mittwald:master Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants