Skip to content

Commit

Permalink
add system build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
naftulikay committed Nov 7, 2023
1 parent 4415388 commit 755069f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 755069f

Please sign in to comment.