-
Notifications
You must be signed in to change notification settings - Fork 40
29 lines (26 loc) · 935 Bytes
/
hakari.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
# This workflow file serves as an example for cargo-hakari CI integration.
on:
push:
branches:
- main
- 'rel/**'
pull_request: {}
name: cargo hakari
jobs:
workspace-hack-check:
name: Check workspace-hack
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461
- name: Install cargo-hakari
env:
version: 0.9.33
run: curl -L "https://github.com/guppy-rs/guppy/releases/download/cargo-hakari-$version/cargo-hakari-$version-x86_64-unknown-linux-gnu.tar.gz" | tar -xzC ~/.cargo/bin
- name: Check workspace-hack Cargo.toml is up-to-date
run: cargo hakari generate --diff
- name: Check all crates depend on workspace-hack
run: cargo hakari manage-deps --dry-run