diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 48e2e5657..bfbba687b 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -46,7 +46,7 @@ jobs: - run: rustup target add ${{ matrix.sys.target }} - if: matrix.sys.target == 'aarch64-unknown-linux-gnu' - run: sudo apt-get update && sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libudev-dev libdbus-1-dev + run: sudo apt-get update && sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu $(cat ./dependencies) - name: Setup vars run: | @@ -69,8 +69,10 @@ jobs: env: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc working-directory: ${{ env.BUILD_WORKING_DIR }} - run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev - run: cargo build --target-dir="$GITHUB_WORKSPACE/target" --package ${{ matrix.crate.name }} --features opt --release --target ${{ matrix.sys.target }} + run: | + pwd + sudo apt-get update && sudo apt-get -y install $(cat ./dependencies) + cargo build --target-dir="$GITHUB_WORKSPACE/target" --package ${{ matrix.crate.name }} --features opt --release --target ${{ matrix.sys.target }} - name: Build provenance for attestation (release only) if: github.event_name == 'release' diff --git a/.github/workflows/dependencies b/.github/workflows/dependencies new file mode 100644 index 000000000..606a4fa89 --- /dev/null +++ b/.github/workflows/dependencies @@ -0,0 +1 @@ +libudev-dev libdbus-1-dev