Skip to content

Commit

Permalink
Update GH actions for supporting unstable features
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Nov 5, 2024
1 parent 168b954 commit f4384ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
tool: cargo-hack,cargo-minimal-versions
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: cargo +${{ matrix.tc }} test --all --all-features
- run: cargo +${{ matrix.tc }} test --all
test:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -30,6 +30,20 @@ jobs:
tool: cargo-hack,cargo-minimal-versions
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: cargo +${{ matrix.tc }} minimal-versions test --all
test-unstable-features:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
tc: [nightly]
steps:
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-minimal-versions
- 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 @@ -53,7 +67,7 @@ jobs:
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: rustup target add ${{ matrix.cc }} --toolchain ${{ matrix.tc }}
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}
- run: cargo +${{ matrix.tc }} minimal-versions build --all --target=${{ matrix.cc }}
cross-compile-ios:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -69,4 +83,4 @@ jobs:
- run: rustup set profile minimal
- run: rustup toolchain install ${{ matrix.tc }}
- run: rustup target add ${{ matrix.cc }} --toolchain ${{ matrix.tc }}
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}
- run: cargo +${{ matrix.tc }} minimal-versions build --all --target=${{ matrix.cc }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4384ea

Please sign in to comment.