Skip to content

Commit

Permalink
Try to fix CI. The MSRV should be bumped to 1.76, which is the same a…
Browse files Browse the repository at this point in the history
…s `yew`'s MSRV.
  • Loading branch information
langyo committed Aug 13, 2024
1 parent 0cba154 commit 7183664
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 29 deletions.
42 changes: 14 additions & 28 deletions .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,47 +42,34 @@ jobs:
env:
RUSTFLAGS: '--cfg releasing'

test-native-stable:
name: Run Native Tests (Stable)
test-native:
name: Run Native Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- 1.76.0
- stable
- nightly
steps:
- name: Checkout Project
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy

- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2

- name: Run cargo test
run: cargo test --all-features --all
env:
RUSTFLAGS: '--cfg releasing'

test-native-msrv:
name: Run Native Tests (MSRV)
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/[email protected]
with:
components: rustfmt, clippy

- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2

# We only run tests on core packages, examples can be upgraded to be incompatible of msrv.
- name: Run cargo test
run: |
cargo test --all-features --package stylist-core
cargo test --all-features --package stylist-macros
cargo test --all-features --package stylist
cargo test -p stylist --features debug_style_locations,parser,yew_integration,yew_use_media_query,yew_use_style,ssr,hydration
cargo test -p stylist-core --all-features
cargo test -p stylist-macros --all-features
env:
RUSTFLAGS: '--cfg releasing'

Expand Down Expand Up @@ -126,8 +113,7 @@ jobs:
needs:
- lint
- rustfmt
- test-native-stable
- test-native-msrv
- test-native
- test-web
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
steps:
Expand Down
3 changes: 2 additions & 1 deletion packages/stylist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ debug_parser = ["stylist-core/parser"]
debug_style_locations = []
macros = ["stylist-macros"]
random = ["dep:fastrand", "dep:instant"]
parser = ["stylist-core/parser"]

browser_env = ["dep:web-sys"]
parser = ["stylist-core/parser"]
yew_integration = ["dep:yew", "yew_use_media_query", "yew_use_style"]
yew_use_media_query = ["dep:yew", "dep:gloo-events", "web-sys/MediaQueryList"]
yew_use_style = ["dep:yew"]
Expand Down

0 comments on commit 7183664

Please sign in to comment.