-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (53 loc) · 1.8 KB
/
Copy pathhawk.yml
File metadata and controls
62 lines (53 loc) · 1.8 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Hawk visibility lint. Explicit optional channel, not PR tip evidence.
#
# Retrigger note: keep this workflow off pull_request CI until Hawk is clean.
#
# Kept off pull_request CI on purpose: tip green must not depend on
# continue-on-error or a forged dashboard app-dist seed. Dispatch or wait for
# the weekly schedule until the Hawk backlog is clean enough to promote into
# required CI without softening -D warnings.
# Unarchive retrigger: keep Hawk optional until -D warnings is clean.
name: Hawk
# On demand only; see distribution-acceptance.yml for why nothing runs on a
# timer here.
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: hawk-${{ github.ref }}
cancel-in-progress: true
jobs:
hawk:
name: Hawk
if: github.repository == 'ScriptedAlchemy/tracedecay'
runs-on: ubuntu-24.04-arm
timeout-minutes: 45
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
# renovate: datasource=github-releases depName=astral-sh/hawk
HAWK_VERSION: 0.1.12
RUSTUP_MAX_RETRIES: 10
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ./.github/actions/setup-pnpm
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target/hawk"
cache-workspace-crates: "false"
cache-on-failure: true
- name: Install Rust toolchain
run: rustup toolchain install 1.97.1
- name: Install Hawk
run: |
curl --proto '=https' --tlsv1.2 -LsSf \
"https://github.com/astral-sh/hawk/releases/download/${HAWK_VERSION}/cargo-hawk-installer.sh" | sh
# hawk.toml selects the shipped CLI as the production entry point.
- name: Hawk
run: >
cargo +1.97.1 hawk check
--target-dir target/hawk
-D warnings