From 11b53ac3c851fce7c73df69d69edcc8bb8ee0974 Mon Sep 17 00:00:00 2001 From: Ruben Nijveld Date: Thu, 11 Apr 2024 12:28:09 +0200 Subject: [PATCH] Test build with prebuilding diesel --- .github/workflows/docker.yml | 47 +++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0012d17..a25ca4c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,22 +4,31 @@ on: workflow_call: jobs: - build: - strategy: - matrix: - include: - - version: stable - latest: false - - version: beta - latest: false - - version: nightly - latest: false - - version: 1.77 - latest: true - - version: 1.76 - latest: false - uses: "./.github/workflows/docker-images.yml" - with: - version: ${{ matrix.version }} - latest: ${{ matrix.latest }} - node_version: "20" + prebuild_binaries: + runs-on: ubuntu-latest + steps: + - uses: dtolnay/rust-toolchain@7164405e8653277d57afd42ba081b5aa02a70396 + with: + toolchain: stable + targets: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu + - run: cargo install --target aarch64-unknown-linux-gnu diesel --no-default-features --features "postgres, sqlite" + + # build: + # strategy: + # matrix: + # include: + # - version: stable + # latest: false + # - version: beta + # latest: false + # - version: nightly + # latest: false + # - version: 1.77 + # latest: true + # - version: 1.76 + # latest: false + # uses: "./.github/workflows/docker-images.yml" + # with: + # version: ${{ matrix.version }} + # latest: ${{ matrix.latest }} + # node_version: "20"