From bd865c2151a4ccb614efc4688e6fcf58d89a98b1 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Wed, 4 Oct 2023 15:17:19 +0100 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 286504f..e9f058f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,14 +10,18 @@ jobs: main: strategy: fail-fast: false - runs-on: ubuntu-20.04 - container: ghcr.io/mopidy/gst-plugin-spotify-build:latest - matrix: + matrix: include: - rust_target: arm-unknown-linux-gnueabihf linker_target: arm-linux-gnueabihf + rust_flags: -C linker=$RPI_LINKER -L$RPI_SYSROOT/lib -L$RPI_SYSROOT/usr/lib + runs-on: ubuntu-20.04 + container: ghcr.io/mopidy/gst-plugin-spotify-build:latest env: GST_PLUGIN: gst-plugin-spotify + RPI_DIR: /rpi-tools/arm-bcm2708/arm-linux-gnueabihf + RPI_SYSROOT: ${{ env.RPI_DIR }}/arm-linux-gnueabihf/sysroot + RPI_LINKER: ${{ env.RPI_DIR }}/bin/arm-linux-gnueabihf-gcc steps: - name: Checkout repo uses: actions/checkout@v4 @@ -61,6 +65,7 @@ jobs: RPI_LINKER="$RPI_DIR/bin/arm-linux-gnueabihf-gcc" RUSTFLAGS="-C linker=$RPI_LINKER -L$RPI_SYSROOT/lib -L$RPI_SYSROOT/usr/lib" echo "RUSTFLAGS=$RUSTFLAGS" >> $GITHUB_ENV + echo "RUSTFLAGS is ${{ matrix.rust_flags }}" - name: Build gst-plugins-rs run: |