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

Fix release scripts for arm64 #219

Merged
merged 4 commits into from
Jul 6, 2023
Merged

Fix release scripts for arm64 #219

merged 4 commits into from
Jul 6, 2023

Conversation

brb
Copy link
Member

@brb brb commented Jul 5, 2023

Tested locally by running make release.

Fix #212

@brb brb force-pushed the pr/brb/release-arm64 branch from eac2a1c to cf62251 Compare July 5, 2023 14:03
@brb brb requested review from jschwinger233 and tklauser and removed request for jschwinger233 July 5, 2023 14:03
local-release.sh Outdated Show resolved Hide resolved
@brb brb force-pushed the pr/brb/release-arm64 branch from cf62251 to db88cbb Compare July 5, 2023 19:35
@brb brb requested a review from tklauser July 5, 2023 19:36
Makefile Outdated Show resolved Hide resolved

test -d release/${OS}/${ARCH} || mkdir -p release/${OS}/${ARCH}
tar -czf release/pwru-${OS}-${ARCH}.tar.gz pwru
(cd release && sha256sum pwru-${OS}-${ARCH}.tar.gz > pwru-${OS}-${ARCH}.tar.gz.sha256sum)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can try goreleaser in the future 😃

Copy link
Member Author

Choose a reason for hiding this comment

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

As long as it's able to statically link with CGO, I am all in 😄

@brb brb force-pushed the pr/brb/release-arm64 branch from db88cbb to 2c8f171 Compare July 6, 2023 06:25
@brb brb requested a review from jschwinger233 July 6, 2023 06:25
brb added 4 commits July 6, 2023 09:11
Otherwise, running "GOARCH=arm64 go generate build.go" results into
cross-compiling bpf2go for arm64 when running on a amd64 host.

Fixes: 62d0dff ("main: pass -target to bpf2go")
Signed-off-by: Martynas Pumputis <[email protected]>
For example:

    LIBPCAP_ARCH=aarch64-unknown-linux-gnu LIBPCAP_CC=aarch64-linux-gnu-gcc make libpcap/libpcap.a

Signed-off-by: Martynas Pumputis <[email protected]>
Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/release-arm64 branch from 2c8f171 to 56c911c Compare July 6, 2023 07:13
@brb brb merged commit 8e2cf58 into main Jul 6, 2023
@tklauser tklauser deleted the pr/brb/release-arm64 branch July 6, 2023 09:02
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.

release.yaml: Cross compile libpcap.a for arm64
3 participants