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 filecoin-station/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:

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos mentioned this pull request Apr 12, 2023
11 tasks
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@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 marked this pull request as ready for review April 13, 2023 09:26
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@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