Skip to content

Commit

Permalink
update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Sep 11, 2023
1 parent d99a925 commit e777443
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 12 deletions.
50 changes: 45 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.60"
- stable
- nightly
target:
Expand All @@ -27,7 +26,7 @@ jobs:
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ 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 }}
Expand All @@ -42,17 +41,58 @@ jobs:
os:
- macos-latest
toolchain:
- "1.60"
- 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.60"
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- 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
toolchain:
- "1.60"
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 }}
54 changes: 47 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 @@ -19,7 +19,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
Expand All @@ -32,7 +32,6 @@ jobs:
os:
- ubuntu-latest
toolchain:
- "1.60"
- stable
- nightly
target:
Expand All @@ -43,7 +42,7 @@ jobs:
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ 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 }}
Expand All @@ -58,17 +57,58 @@ jobs:
os:
- macos-latest
toolchain:
- "1.60"
- 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.60"
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- 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
toolchain:
- "1.60"
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 }}

0 comments on commit e777443

Please sign in to comment.