diff options
| author | soryu <soryu@soryu.co> | 2026-02-23 19:39:36 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-23 19:39:36 +0000 |
| commit | b9bc33ab69d094d97fd1398aaa39e8e435547d17 (patch) | |
| tree | afda75f481233067759378e68069c0ac4d3281f9 /.github | |
| parent | 0a360de32029fc8e750c9d1bc858c989f4cd83e0 (diff) | |
| download | soryu-b9bc33ab69d094d97fd1398aaa39e8e435547d17.tar.gz soryu-b9bc33ab69d094d97fd1398aaa39e8e435547d17.zip | |
fix: add ports.ubuntu.com source for ARM64 cross-compilation packagesv0.3.0makima/soryu-co-soryu---makima--remove-non-blocking-polli-f82de529
Default Ubuntu mirrors on GitHub runners only host amd64 packages.
Add ports.ubuntu.com as the ARM64 source and pin existing sources to
amd64 to avoid conflicts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 418b91a..0bcd8dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,6 +52,14 @@ jobs: if: matrix.target == 'aarch64-unknown-linux-gnu' run: | sudo dpkg --add-architecture arm64 + # Add ports.ubuntu.com source for arm64 packages + sudo tee /etc/apt/sources.list.d/arm64-ports.list <<PORTS + deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -cs) main restricted universe + deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -cs)-updates main restricted universe + deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -cs)-security main restricted universe + PORTS + # Pin default sources to amd64 only so they don't conflict + sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources 2>/dev/null || true sudo apt-get update sudo apt-get install -y gcc-aarch64-linux-gnu libssl-dev:arm64 echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV |
