Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix MSRV, move Feature Powerset to Release test #348

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# bumped on a minor version release:
#
# - abitrary >= 1.1.14 has an MSRV >= 1.63
# - proptest >= 1.1.0 has an MSRV >= 1.60
# - proptest >= 1.1.0 has an MSRV >= 1.65
#
# Instead of pinning to a specific version of `arbitrary` or `proptest`, we'll let user's
# deps decide the version since the API should still be semver compatible.
Expand All @@ -43,21 +43,4 @@ jobs:
# described in <https://github.com/rust-lang/cargo/issues/10189> when using 1.59.
run: |
cargo hack check --features bytes,markup,quickcheck,rkyv,serde,smallvec --manifest-path=compact_str/Cargo.toml --version-range 1.60..
cargo hack check --features bytes,markup,quickcheck,rkyv,serde,smallvec,proptest,arbitrary --manifest-path=compact_str/Cargo.toml --version-range 1.64..

feature_powerset:
name: cargo check feature-powerset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install toolchain
run: rustup toolchain install stable --no-self-update --profile minimal
- name: Install cargo hack
uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2

- name: cargo test msrv..
run: |
cd compact_str
cargo hack check --feature-powerset --optional-deps
cargo hack check --features bytes,markup,quickcheck,rkyv,serde,smallvec,proptest,arbitrary --manifest-path=compact_str/Cargo.toml --version-range 1.65..
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags:
- '*'
workflow_dispatch:

name: Release

env:
CARGO_TERM_COLOR: "always"
RUSTFLAGS: "-D warnings"

jobs:
feature_powerset:
name: cargo check feature-powerset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install toolchain
run: rustup toolchain install stable --no-self-update --profile minimal
- name: Install cargo hack
uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2

- name: cargo test msrv..
run: |
cd compact_str
cargo hack check --feature-powerset --optional-deps