Skip to content

Commit

Permalink
Set linker, bundle sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Apr 12, 2024
1 parent 8698bdf commit c81a665
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c81a665

Please sign in to comment.