Skip to content

Commit

Permalink
Set MSRV per crate
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Nov 9, 2023
1 parent f924467 commit 7d9e22d
Show file tree
Hide file tree
Showing 10 changed files with 252 additions and 208 deletions.
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
-p nostr-sdk,
-p nostr-sdk --no-default-features,
-p nostr-sdk --features blocking,
-p nostr-sdk --features rocksdb,
]
steps:
- name: Checkout
Expand All @@ -59,6 +58,40 @@ jobs:
- name: Clippy
run: cargo clippy ${{ matrix.build-args }} -- -D warnings

build-msrv-1.66.0:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- version: stable # STABLE
- version: 1.66.0 # MSRV
build-args:
[
-p nostr-sdk --features rocksdb,
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-msrv-1.66.0-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default ${{ matrix.rust.version }}
- name: Set profile
run: rustup set profile minimal && rustup component add clippy
- name: Build
run: cargo build ${{ matrix.build-args }}
- name: Tests
run: cargo test ${{ matrix.build-args }}
- name: Clippy
run: cargo clippy ${{ matrix.build-args }} -- -D warnings

build-wasm:
name: Build WASM
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 7d9e22d

Please sign in to comment.