add workflow

This commit is contained in:
Boog900 2024-06-18 21:36:54 +01:00
parent c837f2f48e
commit 1b255f4fa5
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2

31
.github/workflows/hack.yml vendored Normal file
View file

@ -0,0 +1,31 @@
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: cargo install cargo-hack --locked
- name: Deny
run: cargo deny check