Skip to content

Commit

Permalink
Changes again
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Oct 25, 2024
1 parent 1e20724 commit b2ec66a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ on: [push, pull_request]
name: tests

jobs:
test-nightly:
test-lockfile:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
tc: [nightly]
tc: [1.70.0, stable, nightly]
steps:
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-minimal-versions
- run: rustup toolchain install ${{ matrix.tc }} --component rust-std
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: cargo +${{ matrix.tc }} test --all --all-features
test:
runs-on: ${{ matrix.os }}
Expand All @@ -27,7 +28,8 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-minimal-versions
- run: rustup toolchain install ${{ matrix.tc }} --component rust-std
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: cargo +${{ matrix.tc }} minimal-versions test --all --all-features
cross-compile:
runs-on: ${{ matrix.os }}
Expand All @@ -48,7 +50,8 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-minimal-versions
- run: rustup toolchain install ${{ matrix.tc }} --component rust-std
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: rustup target add ${{ matrix.cc }}
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}
cross-compile-ios:
Expand All @@ -63,6 +66,7 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-minimal-versions
- run: rustup toolchain install ${{ matrix.tc }} --component rust-std
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: rustup target add ${{ matrix.cc }}
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}

0 comments on commit b2ec66a

Please sign in to comment.