-
-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (40 loc) · 1.26 KB
/
cackle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Cackle
# We only run Cackle when our Cargo.lock or cackle.toml are changed. A change to any Rust code could
# cause some new code in one of our dependencies to become reachable where it previously wasn't,
# however this is sufficiently rare that it's worthwhile not worrying about. We'd pick this up later
# when Cackle gets run from our cron workflow anyway.
on:
push:
branches: [ '**' ]
paths:
- Cargo.lock
- cackle.toml
pull_request:
branches: [ '**' ]
paths:
- Cargo.lock
- cackle.toml
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
cackle:
name: Cackle check and test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
id: rust-toolchain
- uses: cackle-rs/cackle-action@latest
# Note, we don't cache the target dir, since it currently wouldn't help. We also don't include
# the toolchain or the OS in the cache key.
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cackle-${{ hashFiles('**/Cargo.lock') }}
- run: cargo acl -n
- run: cargo acl -n test