Skip to content

Commit f8db633

Browse files
committed
Add nightly clarity/fuzz build
1 parent 2c1b0d0 commit f8db633

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/cargo-hack-check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Cargo Hack Check
22

33
on:
44
workflow_call:
5+
inputs:
6+
rust-nightly-version:
7+
description: Nightly toolchain to use.
8+
required: false
9+
type: string
10+
default: nightly
511

612
env:
713
RUST_BACKTRACE: full
@@ -116,3 +122,30 @@ jobs:
116122

117123
- name: Run cargo hack check
118124
run: ${{ matrix.command }}
125+
126+
fuzz-targets:
127+
name: Fuzz targets (nightly)
128+
runs-on: ubuntu-latest
129+
needs: setup
130+
steps:
131+
- name: Checkout
132+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
133+
with:
134+
persist-credentials: false
135+
136+
# Install nightly matching org pattern, pinned to v1.13.0 of the action.
137+
- name: Install Rust nightly toolchain
138+
id: install_rust
139+
uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1.13.0
140+
with:
141+
toolchain: ${{ inputs.rust-nightly-version }}
142+
cache: true
143+
cache-key: >
144+
fuzz-${{ hashFiles('clarity/fuzz/Cargo.lock') }}
145+
146+
- name: Build fuzz targets (compile-only)
147+
run: |
148+
cargo +${{ inputs.rust-nightly-version }} build \
149+
--manifest-path clarity/fuzz/Cargo.toml \
150+
--bins \
151+
--locked

0 commit comments

Comments
 (0)