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

feat: build binary for aarch64-unknown-linux-gnu #172

Merged
merged 13 commits into from
Apr 18, 2023
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Apr 12, 2023

Add the following item to the matrix release builds:

  • aarch64-unknown-linux-gnu to allow running Zinnia in GNU-based Linux distros (e.g. Debian) running on Apple Silicon (M1/M2)

See #75 and CheckerNetwork/core#92

I tried to add MUSL targets to support Alpine-based docker images. Unfortunately, Deno does not support MUSL yet, see:

I opened a follow-up issue here:

@bajtos bajtos force-pushed the build-linux-arm64 branch from e2bb8f6 to a997077 Compare April 12, 2023 14:59
Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos bajtos force-pushed the build-linux-arm64 branch from a997077 to 5e44c0e Compare April 12, 2023 15:00
bajtos added 2 commits April 12, 2023 17:08
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos bajtos mentioned this pull request Apr 12, 2023
11 tasks
bajtos added 5 commits April 12, 2023 17:13
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos bajtos force-pushed the build-linux-arm64 branch from 217aa44 to 365b141 Compare April 13, 2023 09:16
@bajtos
Copy link
Member Author

bajtos commented Apr 13, 2023

How to verify the setup:

  1. Download the "archives" for arm64 from GHA run, e.g. https://github.com/filecoin-station/zinnia/actions/runs/4687576517

  2. Extract the archive, then extract the zinnia & zinniad archives.

  3. Assuming you have the extracted files in ~/Downloads/archives-linux-arm64, run the following Docker command:

    ❯ docker run -it --entrypoint /bin/bash -v ~/Downloads/archives-linux-arm64:/archives ubuntu:bionic
  4. Then, inside the running Docker container.

    Smoke test:

    root@33a680b31043:/# /archives/zinniad --version
    zinniad 0.6.0
    

    Run some JavaScript to test V8 low-level stuff:

    root@33a680b31043:/# echo 'console.log("hello world")' > test.js
    root@33a680b31043:/# /archives/zinnia run test.js
    hello world
    

@bajtos bajtos requested a review from juliangruber April 13, 2023 09:26
@bajtos bajtos marked this pull request as ready for review April 13, 2023 09:26
@bajtos bajtos enabled auto-merge (squash) April 18, 2023 13:19
@bajtos bajtos merged commit 84dbe11 into main Apr 18, 2023
@bajtos bajtos deleted the build-linux-arm64 branch April 18, 2023 13:30
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