Skip to content

Fix aarch64 Linux cross-build by provisioning target zlib and restoring cross-build matrix#151

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-linux-cross-build-job
Closed

Fix aarch64 Linux cross-build by provisioning target zlib and restoring cross-build matrix#151
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-linux-cross-build-job

Conversation

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown

The failing linux-cross-build (aarch64-unknown-linux-gnu, true) job was caused by missing target-arch zlib in the cross container (ZLIB_LIBRARY not found during CMake configure). This change restores the Linux cross-build workflow path and ensures required aarch64 zlib dev packages are installed before build.

  • CI workflow updates

    • Restored the linux-cross-build job in .github/workflows/rust.yml with matrix targets:
      • aarch64-unknown-linux-gnu (via cross)
      • x86_64-unknown-linux-gnu (native cargo build)
    • Kept target-specific dependency install behavior aligned with each path.
  • Cross container dependency provisioning

    • Added Cross.toml with target-specific pre-build for aarch64-unknown-linux-gnu.
    • Installs zlib1g-dev:$CROSS_DEB_ARCH inside the cross image so CMake resolves ZLIB_LIBRARY for wxWidgets/wxdragon-sys configuration.
  • Workflow token hardening

    • Added top-level workflow permissions:
      • contents: read
[target.aarch64-unknown-linux-gnu]
pre-build = [
  "dpkg --add-architecture $CROSS_DEB_ARCH",
  "apt-get update && apt-get --assume-yes install zlib1g-dev:$CROSS_DEB_ARCH",
]

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'linux-cross-build (aarch64-unknown-linux-gnu, true)' Fix aarch64 Linux cross-build by provisioning target zlib and restoring cross-build matrix Jun 7, 2026
Copilot AI requested a review from ssrlive June 7, 2026 16:02
@ssrlive ssrlive closed this Jun 7, 2026
@ssrlive ssrlive deleted the copilot/fix-linux-cross-build-job branch June 7, 2026 16:06
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