Skip to content

CI: add cargo hack

CI: add cargo hack #9

Workflow file for this run

name: Hack
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
hack:
runs-on: ubuntu-latest
steps:
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ${{ matrix.os }}-hack
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt install -y libboost-dev
cargo install cargo-hack --locked
- name: Hack Check
# TODO: remove the exclude when `cuprate-database` errors are fixed
run: cargo hack --workspace check --feature-powerset --no-dev-deps