Skip to content

Commit

Permalink
Put external deps for github workflows in one file
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Jan 13, 2025
1 parent 6f13838 commit fd0bd01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 ./.github/workflows/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'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libudev-dev libdbus-1-dev

0 comments on commit fd0bd01

Please sign in to comment.