diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2aab421..83e4c63 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,12 +7,17 @@ jobs: prebuild_binaries: runs-on: ubuntu-latest steps: + - name: Setup packaging tools for cross compiled artifacts + uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2 + with: + packages: qemu-user-static crossbuild-essential-arm64 + version: 1 + - uses: dtolnay/rust-toolchain@7164405e8653277d57afd42ba081b5aa02a70396 with: toolchain: stable targets: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu - - name: Install development tools uses: taiki-e/install-action@f8a64c940979268d3ab5ac99c178e718ed90977d # v2.32.14 with: @@ -23,9 +28,10 @@ jobs: - name: Build diesel_cli run: | + export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cd diesel_cli cat Cargo.toml - cargo build --target aarch64-unknown-linux-gnu --no-default-features --features "postgres, sqlite" + cargo build --target aarch64-unknown-linux-gnu --no-default-features --features "postgres, sqlite-bundled" # build: # strategy: