Skip to content

Commit

Permalink
update MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Sep 11, 2023
1 parent bd535cb commit 4631e81
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 14 deletions.
54 changes: 49 additions & 5 deletions .github/workflows/ci-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
os:
- ubuntu-latest
toolchain:
- 1.64
- stable
- nightly
target:
Expand All @@ -30,7 +29,7 @@ jobs:
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
Expand All @@ -46,17 +45,62 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- 1.64
- stable
- nightly
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --release ${{ matrix.features }}
- run: cargo doc --release ${{ matrix.features }}
- run: cargo doc --release ${{ matrix.features }}

MSRV-1:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
toolchain:
- 1.70
target:
- x86_64-unknown-linux-gnu
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- name: Install libpcsclite-dev
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- run: cargo test --release --lib --bins --target ${{ matrix.target }} ${{ matrix.features }}

MSRV-2:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
toolchain:
- 1.70
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --release --lib --bins ${{ matrix.features }}
58 changes: 51 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
Expand All @@ -23,7 +23,7 @@ jobs:
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
Expand All @@ -36,7 +36,6 @@ jobs:
os:
- ubuntu-latest
toolchain:
- 1.64
- stable
- nightly
target:
Expand All @@ -50,7 +49,7 @@ jobs:
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
Expand All @@ -66,17 +65,62 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- 1.64
- stable
- nightly
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}

MSRV-1:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
toolchain:
- 1.70
target:
- x86_64-unknown-linux-gnu
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- name: Install libpcsclite-dev
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- run: cargo test --lib --bins --target ${{ matrix.target }} ${{ matrix.features }}

MSRV-2:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
toolchain:
- 1.70
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --lib --bins ${{ matrix.features }}
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "tw-nhi-icc-service"
version = "0.1.3"
version = "0.1.4"
authors = ["Magic Len <len@magiclen.org>"]
edition = "2021"
rust-version = "1.64"
rust-version = "1.70"
repository = "https://github.com/magiclen/tw-nhi-icc-service"
homepage = "https://magiclen.org/tw-nhi-icc-service"
keywords = ["smart-card", "pcsc", "nhi-card", "ic-card", "taiwan"]
Expand Down

0 comments on commit 4631e81

Please sign in to comment.