From 2641f905642d21be6e216a5ca8d40ef69e125459 Mon Sep 17 00:00:00 2001 From: elizabethengelman <4752801+elizabethengelman@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:57:32 -0500 Subject: [PATCH] Put external deps for github workflows in one file --- .github/workflows/binaries.yml | 8 +++++--- .github/workflows/dependencies | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/dependencies 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