From 755069f1c418b0f6298b50b6443a9c3ae5b48fe7 Mon Sep 17 00:00:00 2001 From: Naftuli Kay Date: Mon, 6 Nov 2023 17:24:49 -0800 Subject: [PATCH] add system build dependencies --- .github/workflows/rust.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 83d5283..7db9b94 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,6 +9,7 @@ on: workflow_dispatch: {} env: + APT_PACKAGES: libclang-dev nettle-dev CACHE_VERSION: v1 RUSTC_WRAPPER: "/home/runner/.cargo/bin/sccache" SCCACHE_VERSION: 0.5.4 @@ -33,8 +34,12 @@ jobs: ${{ runner.os }}-rust-${{ env.CACHE_VERSION }}-build- ${{ runner.os }}-rust-${{ env.CACHE_VERSION }} - run: lib/install-sccache + - name: install system packages + run: | + sudo DEBIAN_FRONTEND=noninteractive apt update + sudo DEBIAN_FRONTEND=noninteractive apt install -y ${{ env.APT_PACKAGES }} - uses: dtolnay/rust-toolchain@stable - - run: cargo build --release + - run: cargo build --all --release test: runs-on: ubuntu-latest @@ -55,6 +60,10 @@ jobs: ${{ runner.os }}-rust-${{ env.CACHE_VERSION }}-test- ${{ runner.os }}-rust-${{ env.CACHE_VERSION }} - run: lib/install-sccache + - name: install system packages + run: | + sudo DEBIAN_FRONTEND=noninteractive apt update + sudo DEBIAN_FRONTEND=noninteractive apt install -y ${{ env.APT_PACKAGES }} - uses: dtolnay/rust-toolchain@stable - run: cargo test --all-features