Skip to content

Commit 868a399

Browse files
authored
ci: fix msrv runs (#175)
1 parent 63ebde2 commit 868a399

File tree

271 files changed

+420
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+420
-305
lines changed

.github/workflows/main.yml

+24-50
Original file line numberDiff line numberDiff line change
@@ -44,44 +44,8 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
rust: [1.57.0, 1.64.0, stable, nightly]
47+
rust: [1.57.0, stable, nightly]
4848
os: [ubuntu-latest, macOS-latest]
49-
# TODO add honggfuzz back
50-
test: [unit-tests, unit-tests-no-1.57, build-no-default-features, libfuzzer, afl, examples-tests]
51-
sanitizer: [NONE]
52-
exclude:
53-
- rust: 1.57.0
54-
test: unit-tests-no-1.57
55-
# honggfuzz is broken on macOS
56-
- os: macos-latest
57-
test: honggfuzz
58-
include:
59-
- rust: nightly
60-
os: ubuntu-latest
61-
test: libfuzzer
62-
sanitizer: address
63-
# - rust: nightly
64-
# os: ubuntu-latest
65-
# test: honggfuzz
66-
# sanitizer: address
67-
# TODO fix this
68-
# - rust: nightly
69-
# os: ubuntu-latest
70-
# test: afl
71-
# sanitizer: address
72-
- rust: nightly
73-
os: macOS-latest
74-
test: libfuzzer
75-
sanitizer: address
76-
# - rust: nightly
77-
# os: macOS-latest
78-
# test: honggfuzz
79-
# sanitizer: address
80-
# TODO fix this
81-
# - rust: nightly
82-
# os: macOS-latest
83-
# test: afl
84-
# sanitizer: address
8549

8650
steps:
8751
- name: Ubuntu setup
@@ -101,23 +65,33 @@ jobs:
10165
10266
- uses: actions/[email protected]
10367

68+
# install stable for kani, cargo-bolero and test runner
69+
- uses: actions-rs/[email protected]
70+
with:
71+
toolchain: stable
72+
profile: minimal
73+
74+
- name: Install kani
75+
run: |
76+
cargo install --locked kani-verifier
77+
cargo kani setup
78+
10479
- uses: actions-rs/[email protected]
105-
id: toolchain
10680
with:
10781
toolchain: ${{ matrix.rust }}
10882
profile: minimal
109-
override: true
11083

11184
- uses: camshaft/rust-cache@v1
11285
with:
113-
key: ${{ matrix.test }}-${{ matrix.sanitizer }}
86+
# kani isn't compatible with sccache
87+
wrapper: false
88+
89+
- name: Setup target rustc
90+
if: matrix.rust != 'stable' && matrix.rust != 'nightly'
91+
run: echo "TARGET_RUSTC=${{ matrix.rust }}" >> $GITHUB_ENV
11492

115-
- name: ${{ matrix.test }}
116-
run: make ${{ matrix.test }}
117-
env:
118-
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: 1
119-
AFL_SKIP_CPUFREQ: 1
120-
SANITIZER: ${{ matrix.sanitizer }}
93+
- name: Run tests
94+
run: cargo +stable run
12195

12296
kani:
12397
runs-on: ubuntu-latest
@@ -166,10 +140,10 @@ jobs:
166140
run: |
167141
cat <<EOF >> Cargo.toml
168142
[patch.crates-io]
169-
bolero = { path = "../../../../bolero" }
170-
bolero-engine = { path = "../../../../bolero-engine" }
171-
bolero-generator = { path = "../../../../bolero-generator" }
172-
bolero-generator-derive = { path = "../../../../bolero-generator-derive" }
143+
bolero = { path = "../../../../lib/bolero" }
144+
bolero-engine = { path = "../../../../lib/bolero-engine" }
145+
bolero-generator = { path = "../../../../lib/bolero-generator" }
146+
bolero-generator-derive = { path = "../../../../lib/bolero-generator-derive" }
173147
EOF
174148
175149
- uses: camshaft/rust-cache@v1

Cargo.toml

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
[workspace]
22
members = [
3-
"bolero",
4-
"bolero-*",
5-
"cargo-bolero",
3+
"tests",
64
]
7-
8-
[profile.fuzz]
9-
inherits = "dev"
10-
opt-level = 3
11-
incremental = false
12-
codegen-units = 1
13-
14-
[profile.release]
15-
lto = true
16-
codegen-units = 1
17-
incremental = false
5+
resolver = "2"

Makefile

-217
This file was deleted.

bin/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[workspace]
2+
members = [
3+
"cargo-bolero",
4+
]
5+
resolver = "2"

cargo-bolero/Cargo.toml bin/cargo-bolero/Cargo.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ keywords = ["testing", "quickcheck", "property", "fuzz", "fuzzing"]
99
license = "MIT"
1010
edition = "2018"
1111
readme = "README.md"
12+
rust-version = "1.66.0"
1213

1314
[features]
1415
default = ["afl", "libfuzzer", "kani"]
@@ -20,8 +21,8 @@ libfuzzer = []
2021
[dependencies]
2122
anyhow = "1.0"
2223
bit-set = "0.5"
23-
bolero-afl = { version = "0.9", path = "../bolero-afl", default-features = false, features = ["bin"], optional = true }
24-
bolero-honggfuzz = { version = "0.9", path = "../bolero-honggfuzz", default-features = false, features = ["bin"], optional = true }
24+
bolero-afl = { version = "0.9", path = "../../lib/bolero-afl", default-features = false, features = ["bin"], optional = true }
25+
bolero-honggfuzz = { version = "0.9", path = "../../lib/bolero-honggfuzz", default-features = false, features = ["bin"], optional = true }
2526
humantime = "2"
2627
lazy_static = "1"
2728
rustc_version = "0.4"
@@ -31,7 +32,7 @@ serde_json = "1.0"
3132
tempfile = "3"
3233

3334
[dev-dependencies]
34-
bolero = { version = "0.9", path = "../bolero" }
35+
bolero = { version = "0.9", path = "../../lib/bolero" }
3536

3637
[[test]]
3738
name = "fuzz_bytes"
@@ -42,3 +43,4 @@ harness = false
4243
name = "fuzz_generator"
4344
path = "tests/fuzz_generator/fuzz_target.rs"
4445
harness = false
46+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

bin/rust-toolchain

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "1.66.0"
3+
components = [ "rustc", "clippy", "rustfmt" ]

examples/basic/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2018"
88
arrayvec = "0.5"
99

1010
[dev-dependencies]
11-
bolero = { path = "../../bolero" }
11+
bolero = { path = "../../lib/bolero" }
1212

1313
[workspace]
1414
members = ["."]

0 commit comments

Comments
 (0)