Skip to content

Commit

Permalink
Explicit architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Apr 12, 2024
1 parent 9c0834e commit 1c0b447
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,20 @@ jobs:
with:
tool: cargo-clone,cross

- name: Download diesel_cli
run: cargo clone diesel_cli

- name: Build diesel_cli
- name: Download and build diesel_cli
run: |
cargo clone diesel_cli
cd diesel_cli
cat Cargo.toml
cat << EOF > Cross.toml
[target.x86_64-unknown-linux-gnu]
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libpq-dev:$CROSS_DEB_ARCH"
"dpkg --add-architecture arm64",
"apt-get update && apt-get install --assume-yes libpq-dev:arm64"
]
[target.aarch64-unknown-linux-gnu]
[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libpq-dev:$CROSS_DEB_ARCH"
"dpkg --add-architecture amd64",
"apt-get update && apt-get install --assume-yes libpq-dev:amd64"
]
EOF
cross build --target aarch64-unknown-linux-gnu --no-default-features --features "postgres, sqlite-bundled"
Expand Down

0 comments on commit 1c0b447

Please sign in to comment.