Skip to content

Commit

Permalink
Update the CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sellout committed Dec 6, 2024
1 parent 5638787 commit a07c8e7
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,40 +26,48 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
toolchain:
- rust-toolchain.toml
- nightly
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: actions-rs/cargo@v1
if: matrix.toolchain == 'rust-toolchain.toml'
with:
toolchain: ${{ matrix.rust }}
override: true
command: package
- run: rustup install ${{ matrix.toolchain }}
if: matrix.toolchain != 'rust-toolchain.toml'
- uses: actions-rs/cargo@v1
if: matrix.toolchain != 'rust-toolchain.toml'
with:
command: package
toolchain: ${{ matrix.toolchain }}

test-versions:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
toolchain:
- rust-toolchain.toml
- nightly
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: actions-rs/cargo@v1
if: matrix.toolchain == 'rust-toolchain.toml'
with:
toolchain: ${{ matrix.rust }}
override: true
command: test
- run: rustup install ${{ matrix.toolchain }}
if: matrix.toolchain != 'rust-toolchain.toml'
- uses: actions-rs/cargo@v1
if: matrix.toolchain != 'rust-toolchain.toml'
with:
command: test
toolchain: ${{ matrix.toolchain }}

test-os:
name: Test Suite
Expand All @@ -78,19 +86,8 @@ jobs:
# - name: install LLVM on Mac
# if: matrix.os == 'macOS-latest'
# run: brew install llvm
- uses: actions-rs/toolchain@v1
- run: rustup target add x86_64-pc-windows-msvc
if: matrix.os == 'windows-latest'
with:
target: x86_64-pc-windows-msvc
toolchain: stable
profile: minimal
override: true
- uses: actions-rs/toolchain@v1
if: matrix.os != 'windows-latest'
with:
toolchain: stable
profile: minimal
override: true
- uses: actions-rs/cargo@v1
if: matrix.os == 'windows-latest'
with:
Expand All @@ -108,8 +105,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup show
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
Expand All @@ -122,8 +117,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup show
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
Expand Down

0 comments on commit a07c8e7

Please sign in to comment.