Skip to content

Commit

Permalink
wip: use lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Apr 16, 2024
1 parent 801c63b commit be118e3
Show file tree
Hide file tree
Showing 3 changed files with 610 additions and 11 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Cargo update
run: cargo update
- name: Cargo update (fix for MSRV)
run: cargo update -p toml_datetime --precise 0.6.1
if: matrix.rust == '1.63.0'
- run: RUSTFLAGS="-D warnings" cargo check
- run: RUSTFLAGS="-D warnings" cargo check --locked

test_features:
name: Test suite (with features)
Expand All @@ -43,15 +38,15 @@ jobs:
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test ${{ matrix.features }}
- run: cargo test --locked ${{ matrix.features }}

no_std:
name: no-std
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: RUSTFLAGS="-D warnings" cargo check --no-default-features
- run: RUSTFLAGS="-D warnings" cargo check --locked --no-default-features

fmt:
name: Rustfmt
Expand All @@ -71,7 +66,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- run: cargo clippy -- -D warnings
- run: cargo clippy --locked -- -D warnings

doc:
name: Build documentation
Expand All @@ -81,7 +76,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo doc --workspace --no-deps --all-features
- run: cargo doc --workspace --no-deps --locked --all-features

semver:
name: Check semver compatibility
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.*.swp
target
Cargo.lock
/.idea
Loading

0 comments on commit be118e3

Please sign in to comment.