mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
build: Improve arm64 cross-compilation setup
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
parent
17c6e7ee98
commit
579a617ee7
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -27,9 +27,12 @@ jobs:
|
|||
|
||||
- name: Install cross-compilation dependencies
|
||||
run: |
|
||||
sudo dpkg --add-architecture arm64
|
||||
sudo apt-get update -y
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y gcc-aarch64-linux-gnu libudev-dev
|
||||
# Install build tools and cross-compilation libraries.
|
||||
# cmake is included as it's in setup.sh and might be needed by a dependency.
|
||||
# The :arm64 suffix is required for cross-compilation.
|
||||
sudo apt-get install -y gcc-aarch64-linux-gnu libudev-dev:arm64 cmake
|
||||
|
||||
- name: Build release binary
|
||||
run: cargo build --release --target ${{ env.RUST_TARGET }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue