Skip to content

Commit

Permalink
Setup multi-arch and install libpq:arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Apr 12, 2024
1 parent c81a665 commit a6b0ecf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ jobs:
prebuild_binaries:
runs-on: ubuntu-latest
steps:
- name: Setup multi-arch for arm64 and install libpq
run: |
sudo dpkg --add-architecture arm64
sudo apt update
sudo apt install libpq-dev:arm64
- 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
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@7164405e8653277d57afd42ba081b5aa02a70396
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu
Expand Down

0 comments on commit a6b0ecf

Please sign in to comment.