rust-serverless / lambda-rust

🐳 🦀 a dockerized lambda build env for rust applications
MIT License
34 stars 8 forks source link

Build arm64 image on GitHub Actions #39

Closed tysg closed 2 years ago

tysg commented 2 years ago

A part of #34

GitHub Actions' yaml is super hard to debug locally, so expect this PR to contain lots of frustrated commits :)

tysg commented 2 years ago

Oops the latest workflow is running for over an hour. @zamazan4ik could you cancel it, or does it matter? I'll address this in the next commit.

zamazan4ik commented 2 years ago

Don`t worry - it will ba cancelled automatically

tysg commented 2 years ago

Looking at this line https://github.com/rust-serverless/lambda-rust/runs/5419998450?check_suite_focus=true#step:4:539,

  1.58.1-aarch64-unknown-linux-gnu installed - rustc 1.58.1 (db9d1b20b 2022-01-20)

I'm reasonably confident that the image is building on QEMU. Currently we only run the tests against the x64 image, since running the test on QEMU is too slow.

I'll run the test with the arm64 image on my local machine once it's published. @zamazan4ik sorry for the GitHub workflow spam, please feel free to make any edit, too! (Also please squash if you're going to merge it, I'll be too embarrassed to see the commit messages on the master branch)

zamazan4ik commented 2 years ago

Thanks!