mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
fix: Correct apt sources list configuration for ARM64 cross-compilation
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
parent
d74ddf5f82
commit
155db0b163
1 changed files with 14 additions and 16 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
|
@ -31,12 +31,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg --add-architecture arm64
|
sudo dpkg --add-architecture arm64
|
||||||
# Configure sources for ARM64 packages - all ARM64 packages come from ports.ubuntu.com
|
# Configure sources for ARM64 packages - all ARM64 packages come from ports.ubuntu.com
|
||||||
sudo tee /etc/apt/sources.list.d/arm64.list > /dev/null <<EOF
|
sudo tee /etc/apt/sources.list.d/arm64.list > /dev/null <<'EOF'
|
||||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
|
||||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
|
||||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
|
||||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse
|
||||||
EOF
|
EOF
|
||||||
# Modify existing sources to exclude arm64 architecture
|
# Modify existing sources to exclude arm64 architecture
|
||||||
sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list
|
sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
|
|
@ -46,8 +46,6 @@ jobs:
|
||||||
sudo apt-get install -y libpkgconf3:arm64
|
sudo apt-get install -y libpkgconf3:arm64
|
||||||
- name: Install Rust dependencies
|
- name: Install Rust dependencies
|
||||||
run: cargo fetch --target ${{ env.RUST_TARGET }}
|
run: cargo fetch --target ${{ env.RUST_TARGET }}
|
||||||
- name: Install additional dependencies
|
|
||||||
run: sudo apt-get install -y libudev-dev
|
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
run: cargo build --release --target ${{ env.RUST_TARGET }}
|
run: cargo build --release --target ${{ env.RUST_TARGET }}
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue