From 28868264514a71ec78ba82aabeddef0d6c98d9f9 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 13:52:45 -0400 Subject: [PATCH 1/7] ci: Add caching; no release builds --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85555d2..7f28a48 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - run: | rustup toolchain install + - uses: Swatinem/rust-cache@v2 - run: | - cargo build --release + cargo build - run: | - cargo build --release --all-features + cargo build --all-features From 0301c023b53f92aec0440a45e8c73f506c4720a1 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 13:58:04 -0400 Subject: [PATCH 2/7] Pin Swatinem/rust-cache. Use rustup for clippy. --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 3 +++ .github/workflows/test.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f28a48..ba0241b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - run: | rustup toolchain install - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 - run: | cargo build - run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ad37b79..bf0a7b6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,5 +21,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - run: | + rustup toolchain install + - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 - run: | cargo clippy -- -Dwarnings diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62c6b88..d0d48c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - run: | rustup toolchain install + - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 - run: | cargo build - run: | From 30102d80dd021450ece76ce0dfca88e49f3eaeae Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 14:19:25 -0400 Subject: [PATCH 3/7] rerun From f4d6d67c0f9aa8cba0de2e21410a63056e497901 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 14:26:21 -0400 Subject: [PATCH 4/7] Remove build.yml --- .github/workflows/build.yml | 24 ------------------------ .github/workflows/test.yml | 2 ++ 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ba0241b..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Build - -on: - push: - branches: - - main - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }} - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - run: | - rustup toolchain install - - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 - - run: | - cargo build - - run: | - cargo build --all-features diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0d48c4..d052946 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,8 +33,10 @@ jobs: rustup toolchain install - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 - run: | + # ensure build with default features succeeds cargo build - run: | + # build & test with all features cargo test --all-features env: RUST_BACKTRACE: "1" From 9a71e5f591b3d87a060b3cdf218893850db6d960 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 14:36:20 -0400 Subject: [PATCH 5/7] Comment order --- .github/workflows/test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d052946..4149276 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,11 +32,9 @@ jobs: - run: | rustup toolchain install - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 + run: | + cargo build # check default features - run: | - # ensure build with default features succeeds - cargo build - - run: | - # build & test with all features cargo test --all-features env: RUST_BACKTRACE: "1" From e463cc4fc87bd05c012267eac2d9e23070ca0e48 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 14:39:17 -0400 Subject: [PATCH 6/7] Missing dash --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4149276..9cfa622 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: - run: | rustup toolchain install - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 - run: | + - run: | cargo build # check default features - run: | cargo test --all-features From 0bda026177827880017b1368921e614dcafb31a8 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Mar 2026 14:53:46 -0400 Subject: [PATCH 7/7] On --release build on main --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9a23d17 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build + +on: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - run: | + rustup toolchain install + - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # 2.9.1 + - run: | + cargo build --release + - run: | + cargo build --release --all-features