From 4a97bb8cd0f8eaba06fc2fd95fd6043bcb4a91fd Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 17:18:26 +0200 Subject: [PATCH 01/16] ci: new checks file --- .github/workflows/checks.yml | 91 ++++++++++++++++++++++++++++++ .github/workflows/rust.yml | 104 ----------------------------------- 2 files changed, 91 insertions(+), 104 deletions(-) create mode 100644 .github/workflows/checks.yml delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 00000000..d0ceaada --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,91 @@ +name: checks +on: + pull_request: + merge_group: + types: [checks_requested] + workflow_dispatch: +jobs: + stable: + name: Stable + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install fuzzing + run: | + sudo apt-get update -y + sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev + sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev + - name: install toolchain + uses: dtolnay/rust-toolchain@stable + - name: test no default features + run: cargo test --no-default-features + - name: test default features + run: cargo test + - name: fuzz + working-directory: fuzz + run: ./travis-fuzz.sh + nightly: + name: Nightly + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install toolchain + uses: dtolnay/rust-toolchain@nightly + - name: style check + run: | + rustup component add rustfmt + cargo fmt --all --check + - name: clippy check + run: | + rustup component add clippy + cargo clippy + - name: doc build + run: cargo doc --all-features + - name: test no default features + run: cargo test --no-default-features + - name: test default features + run: cargo test + - name: test all features + run: cargo test --all-features + - name: miri no default features + run: | + rustup component add miri + cargo miri test --no-default-features + - name: miri default features + run: cargo miri test + - name: miri all features + run: cargo miri test --all-features + - name: bench no default features + run: cargo bench --no-default-features + - name: bench default features + run: cargo bench + - name: bench all features + run: cargo bench --all-features + nostd: + name: NoStd + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install toolchain + uses: dtolnay/rust-toolchain@stable + with: + target: thumbv7m-none-eabi + - name: test no default features + run: cargo test --no-default-features + - name: test default features + run: cargo test + msrv: + name: MSRV + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install toolchain + uses: dtolnay/rust-toolchain@1.86 + - name: test no default features + run: cargo test --no-default-features + - name: test default features + run: cargo test \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 2a836946..00000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,104 +0,0 @@ -name: Rust - -on: - push: - branches: [v2] - pull_request: - merge_group: - types: [checks_requested] - workflow_dispatch: - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - name: Build and test (${{ matrix.name }}) - runs-on: ubuntu-latest - strategy: - matrix: - include: - - name: stable - toolchain: stable - fuzz: true - - name: beta - toolchain: beta - fuzz: true - - name: nightly - toolchain: nightly - nightly: true - - name: MSRV - toolchain: "1.86.0" - - name: no_std - toolchain: stable - target: thumbv7m-none-eabi - no_std: true - steps: - - uses: actions/checkout@v7 - - - name: Install packages for fuzzing - if: matrix.fuzz - run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev - - - name: Install toolchain - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - target: ${{ matrix.target }} - - - name: Style check - if: matrix.nightly - run: rustup component add rustfmt && cargo fmt --all --check - - - name: Clippy check - if: matrix.nightly - run: rustup component add clippy && cargo clippy --all-features --all-targets -- -D warnings - - - name: Build - run: cargo build --verbose - - - name: Run tests - if: ${{ !matrix.no_std }} - run: cargo test --verbose - - - name: Cargo test no default features - if: matrix.nightly - run: cargo test --verbose --no-default-features - - - name: Cargo test all features - if: matrix.nightly - run: cargo test --verbose --all-features - - - name: Cargo doc all features - if: matrix.nightly - run: cargo doc --all-features --verbose - - - name: Cargo bench no default features - if: matrix.nightly - run: cargo clean && cargo bench --verbose --no-default-features - - - name: Cargo bench all features - if: matrix.nightly - run: cargo clean && cargo bench --verbose --all-features - - - name: miri - if: matrix.nightly - run: rustup component add miri && cargo miri test --verbose --all-features - - - name: fuzz - if: matrix.fuzz - working-directory: fuzz - run: ./travis-fuzz.sh - - build_result: - name: homu build finished - runs-on: ubuntu-latest - needs: build - - steps: - - name: Mark the job as successful - run: exit 0 - if: success() - - name: Mark the job as unsuccessful - run: exit 1 - if: "!success()" From 20b8da6f8c928076780b2ef195836efe5fd30816 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 17:21:13 +0200 Subject: [PATCH 02/16] ci: simplified fuzzing --- .github/workflows/checks.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d0ceaada..54865167 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -11,12 +11,7 @@ jobs: steps: - name: checkout uses: actions/checkout@v7 - - name: install fuzzing - run: | - sudo apt-get update -y - sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev - sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev - - name: install toolchain + - name: install uses: dtolnay/rust-toolchain@stable - name: test no default features run: cargo test --no-default-features @@ -24,14 +19,18 @@ jobs: run: cargo test - name: fuzz working-directory: fuzz - run: ./travis-fuzz.sh + run: | + sudo apt-get update -y + sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev + sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev + ./travis-fuzz.sh nightly: name: Nightly runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v7 - - name: install toolchain + - name: install uses: dtolnay/rust-toolchain@nightly - name: style check run: | @@ -69,7 +68,7 @@ jobs: steps: - name: checkout uses: actions/checkout@v7 - - name: install toolchain + - name: install uses: dtolnay/rust-toolchain@stable with: target: thumbv7m-none-eabi @@ -83,7 +82,7 @@ jobs: steps: - name: checkout uses: actions/checkout@v7 - - name: install toolchain + - name: install uses: dtolnay/rust-toolchain@1.86 - name: test no default features run: cargo test --no-default-features From ecf9687584d0b4370f646b4a2cf165c186c2fd5c Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 17:31:47 +0200 Subject: [PATCH 03/16] fix: no borsh miri tests --- tests/borsh.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/borsh.rs b/tests/borsh.rs index 1c99798f..53e9b02a 100644 --- a/tests/borsh.rs +++ b/tests/borsh.rs @@ -7,6 +7,7 @@ use { }; #[test] +#[cfg(not(miri))] fn round_trip() { let smallvec = SmallVec::::from([1, 2, 3]); let bytes = to_vec(&smallvec).unwrap(); From a30292f9467c8fcd823869dac2903ccf60ded600 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 17:35:20 +0200 Subject: [PATCH 04/16] fix: skip all borsh tests under miri --- tests/borsh.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/borsh.rs b/tests/borsh.rs index 53e9b02a..972f378d 100644 --- a/tests/borsh.rs +++ b/tests/borsh.rs @@ -1,3 +1,5 @@ +#![cfg(not(miri))] + use { borsh::{ BorshDeserialize, @@ -7,7 +9,6 @@ use { }; #[test] -#[cfg(not(miri))] fn round_trip() { let smallvec = SmallVec::::from([1, 2, 3]); let bytes = to_vec(&smallvec).unwrap(); From 38e4a7772dc2f74d6b4095f073761a4446ce3b6d Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 17:39:52 +0200 Subject: [PATCH 05/16] fix: taggedlen add unused function --- src/taggedlen.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/taggedlen.rs b/src/taggedlen.rs index 7e76ca81..0a2204a7 100644 --- a/src/taggedlen.rs +++ b/src/taggedlen.rs @@ -60,14 +60,16 @@ impl TaggedLen { /// current len+n must be smaller than MAX_LEN on 64-bit target #[inline(always)] pub const unsafe fn add(&mut self, n: usize) { - #[cold] - #[inline(never)] - const fn assert_failed() { - panic!("smallvec length overflow") - } #[cfg(any(debug_assertions, not(target_pointer_width = "64")))] - if self.len().saturating_add(n) > Self::MAX_LEN { - assert_failed(); + { + #[cold] + #[inline(never)] + const fn assert_failed() { + panic!("smallvec length overflow") + } + if self.len().saturating_add(n) > Self::MAX_LEN { + assert_failed(); + } } self.0 += n << Self::SHIFT; } From 304eacbc0bcc5ef41397703c0ac10ef0805650c5 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 18:01:14 +0200 Subject: [PATCH 06/16] ci: add performance workflow --- .github/workflows/checks.yml | 6 ------ .github/workflows/performance.yml | 36 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/performance.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 54865167..892724de 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -56,12 +56,6 @@ jobs: run: cargo miri test - name: miri all features run: cargo miri test --all-features - - name: bench no default features - run: cargo bench --no-default-features - - name: bench default features - run: cargo bench - - name: bench all features - run: cargo bench --all-features nostd: name: NoStd runs-on: ubuntu-latest diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml new file mode 100644 index 00000000..d29e881e --- /dev/null +++ b/.github/workflows/performance.yml @@ -0,0 +1,36 @@ +name: performance +on: + push: + branches: [v2] + workflow_dispatch: +jobs: + no: + name: bench no default features + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@nightly + - name: bench + run: cargo bench --no-default-features + default: + name: bench default features + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@nightly + - name: bench + run: cargo bench + all: + name: bench all features + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@nightly + - name: bench + run: cargo bench --all-features \ No newline at end of file From 77e7869eac032f820771d25951b6ba9f7378c2ab Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 18:09:22 +0200 Subject: [PATCH 07/16] fix: borsh tests active under miri again --- tests/borsh.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/borsh.rs b/tests/borsh.rs index 972f378d..5ab0453e 100644 --- a/tests/borsh.rs +++ b/tests/borsh.rs @@ -1,5 +1,3 @@ -#![cfg(not(miri))] - use { borsh::{ BorshDeserialize, @@ -18,7 +16,7 @@ fn round_trip() { #[test] fn round_trip_zst() { - let smallvec = SmallVec::<(), 5>::from([(); 0x100000]); + let smallvec = SmallVec::<(), 5>::from([(); 0x100]); let bytes = to_vec(&smallvec).unwrap(); let new = SmallVec::<(), 100>::deserialize(&mut bytes.as_ref()).unwrap(); assert_eq!(new, smallvec); From 232fb4a172bb3a1a5bdc38a139102329574bd405 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sun, 20 Sep 2026 18:23:34 +0200 Subject: [PATCH 08/16] ci: additional jobs --- .github/workflows/checks.yml | 73 ++++++++++++++++++++----------- .github/workflows/performance.yml | 8 ++-- 2 files changed, 52 insertions(+), 29 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 892724de..1cd51e53 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -5,6 +5,54 @@ on: types: [checks_requested] workflow_dispatch: jobs: + practices: + name: Practices + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@nightly + - name: style + run: | + rustup component add rustfmt + cargo fmt --all --check + - name: clippy + run: | + rustup component add clippy + cargo clippy + - name: docs + run: cargo doc --all-features + fuzz: + name: Fuzz + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@stable + - name: fuzzing + run: | + sudo apt-get update -y + sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev + sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev + ./travis-fuzz.sh + miri: + name: Miri + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@nightly + - name: no default features + run: | + rustup component add miri + cargo miri test --no-default-features + - name: default features + run: cargo miri test + - name: all features + run: cargo miri test --all-features stable: name: Stable runs-on: ubuntu-latest @@ -17,13 +65,6 @@ jobs: run: cargo test --no-default-features - name: test default features run: cargo test - - name: fuzz - working-directory: fuzz - run: | - sudo apt-get update -y - sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev - sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev - ./travis-fuzz.sh nightly: name: Nightly runs-on: ubuntu-latest @@ -32,30 +73,12 @@ jobs: uses: actions/checkout@v7 - name: install uses: dtolnay/rust-toolchain@nightly - - name: style check - run: | - rustup component add rustfmt - cargo fmt --all --check - - name: clippy check - run: | - rustup component add clippy - cargo clippy - - name: doc build - run: cargo doc --all-features - name: test no default features run: cargo test --no-default-features - name: test default features run: cargo test - name: test all features run: cargo test --all-features - - name: miri no default features - run: | - rustup component add miri - cargo miri test --no-default-features - - name: miri default features - run: cargo miri test - - name: miri all features - run: cargo miri test --all-features nostd: name: NoStd runs-on: ubuntu-latest diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index d29e881e..3cb83d1b 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -4,8 +4,8 @@ on: branches: [v2] workflow_dispatch: jobs: - no: - name: bench no default features + none: + name: None runs-on: ubuntu-latest steps: - name: checkout @@ -15,7 +15,7 @@ jobs: - name: bench run: cargo bench --no-default-features default: - name: bench default features + name: Default runs-on: ubuntu-latest steps: - name: checkout @@ -25,7 +25,7 @@ jobs: - name: bench run: cargo bench all: - name: bench all features + name: All runs-on: ubuntu-latest steps: - name: checkout From 466b1890c37322d09f2047f0b1346c541467911a Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 00:06:02 +0200 Subject: [PATCH 09/16] style: formatting --- src/taggedlen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taggedlen.rs b/src/taggedlen.rs index 664616fe..2254b15d 100644 --- a/src/taggedlen.rs +++ b/src/taggedlen.rs @@ -72,9 +72,9 @@ impl TaggedLen { if value > Self::MAX_LEN { assert_failed() } - }, + } None => assert_failed() - } + } } self.0 += n << Self::SHIFT; } From c3542f064670bbd213b97856b925ac5833ff2a51 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 13:59:07 +0200 Subject: [PATCH 10/16] ci: remove dependabot --- .github/dependabot.yml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index e5098313..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "cargo" - directory: "/" - schedule: - interval: "daily" \ No newline at end of file From c8cbb26c853a0528e6b2560bfabe18d8184e8f49 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 14:05:47 +0200 Subject: [PATCH 11/16] ci: separate fuzzing --- .github/workflows/checks.yml | 14 -------------- .github/workflows/fuzzing.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/fuzzing.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1cd51e53..55393817 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -23,20 +23,6 @@ jobs: cargo clippy - name: docs run: cargo doc --all-features - fuzz: - name: Fuzz - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v7 - - name: install - uses: dtolnay/rust-toolchain@stable - - name: fuzzing - run: | - sudo apt-get update -y - sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev - sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev - ./travis-fuzz.sh miri: name: Miri runs-on: ubuntu-latest diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml new file mode 100644 index 00000000..3430d5f8 --- /dev/null +++ b/.github/workflows/fuzzing.yml @@ -0,0 +1,20 @@ +name: fuzzing +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 4" +jobs: + fuzz: + name: Fuzz + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@stable + - name: fuzzing + run: | + sudo apt-get update -y + sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev + sudo apt-get install -y libelf-dev libdw-dev cmake gcc libiberty-dev + ./travis-fuzz.sh \ No newline at end of file From 2c5522e424d6beefcd75c4c9599bbb3b6f9ae0b0 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 18:47:17 +0200 Subject: [PATCH 12/16] ci: remove no default features --- .github/workflows/checks.yml | 12 ------------ .github/workflows/performance.yml | 10 ---------- 2 files changed, 22 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 55393817..82c8c24e 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -31,10 +31,6 @@ jobs: uses: actions/checkout@v7 - name: install uses: dtolnay/rust-toolchain@nightly - - name: no default features - run: | - rustup component add miri - cargo miri test --no-default-features - name: default features run: cargo miri test - name: all features @@ -47,8 +43,6 @@ jobs: uses: actions/checkout@v7 - name: install uses: dtolnay/rust-toolchain@stable - - name: test no default features - run: cargo test --no-default-features - name: test default features run: cargo test nightly: @@ -59,8 +53,6 @@ jobs: uses: actions/checkout@v7 - name: install uses: dtolnay/rust-toolchain@nightly - - name: test no default features - run: cargo test --no-default-features - name: test default features run: cargo test - name: test all features @@ -75,8 +67,6 @@ jobs: uses: dtolnay/rust-toolchain@stable with: target: thumbv7m-none-eabi - - name: test no default features - run: cargo test --no-default-features - name: test default features run: cargo test msrv: @@ -87,7 +77,5 @@ jobs: uses: actions/checkout@v7 - name: install uses: dtolnay/rust-toolchain@1.86 - - name: test no default features - run: cargo test --no-default-features - name: test default features run: cargo test \ No newline at end of file diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 3cb83d1b..ba27ea20 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -4,16 +4,6 @@ on: branches: [v2] workflow_dispatch: jobs: - none: - name: None - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v7 - - name: install - uses: dtolnay/rust-toolchain@nightly - - name: bench - run: cargo bench --no-default-features default: name: Default runs-on: ubuntu-latest From c3ac8d40222a42648016b3d26638556b734fef80 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 18:55:04 +0200 Subject: [PATCH 13/16] fix: miri --- .github/workflows/checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 82c8c24e..46855ffa 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -32,7 +32,9 @@ jobs: - name: install uses: dtolnay/rust-toolchain@nightly - name: default features - run: cargo miri test + run: | + rustup component add miri + cargo miri test - name: all features run: cargo miri test --all-features stable: From 9f9e25de9fc941c7f5912ee5cd2a74d8ea579db5 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 19:04:31 +0200 Subject: [PATCH 14/16] ci: run fuzzing every day --- .github/workflows/fuzzing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index 3430d5f8..0ef3cacd 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -2,7 +2,7 @@ name: fuzzing on: workflow_dispatch: schedule: - - cron: "0 0 * * 4" + - cron: "0 0 * * *" jobs: fuzz: name: Fuzz From 897c1873c901442fd135a63ccbaa27aa56f31a23 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 22 Sep 2026 19:09:24 +0200 Subject: [PATCH 15/16] fix: only run fuzzing from repo --- .github/workflows/fuzzing.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index 0ef3cacd..a1a88f08 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -6,6 +6,7 @@ on: jobs: fuzz: name: Fuzz + if: github.repository == 'servo/rust-smallvec' runs-on: ubuntu-latest steps: - name: checkout From 17e931903318df6175ccebfc1183c1ced23565bb Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Wed, 23 Sep 2026 14:02:26 +0200 Subject: [PATCH 16/16] ci: bench compilation --- .github/workflows/checks.yml | 12 ++++++++++++ .github/workflows/performance.yml | 26 -------------------------- 2 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/performance.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 46855ffa..441db727 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -5,6 +5,18 @@ on: types: [checks_requested] workflow_dispatch: jobs: + benchmarks: + name: Benchmarks + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7 + - name: install + uses: dtolnay/rust-toolchain@nightly + - name: default features + run: cargo bench --no-run + - name: all features + run: cargo bench --all-features --no-run practices: name: Practices runs-on: ubuntu-latest diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml deleted file mode 100644 index ba27ea20..00000000 --- a/.github/workflows/performance.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: performance -on: - push: - branches: [v2] - workflow_dispatch: -jobs: - default: - name: Default - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v7 - - name: install - uses: dtolnay/rust-toolchain@nightly - - name: bench - run: cargo bench - all: - name: All - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v7 - - name: install - uses: dtolnay/rust-toolchain@nightly - - name: bench - run: cargo bench --all-features \ No newline at end of file