mirror of
https://github.com/logos-blockchain/sponges.git
synced 2026-07-30 10:33:21 +00:00
Basically all of the `actions-rs/*` actions are unmaintained. See <https://github.com/actions-rs/toolchain/issues/216> for more information. Due to their age they generate several warnings in CI runs. To get rid of those warnings the occurrences of `actions-rs/toolchain` are replaced by `dtolnay/rust-toolchain`, and the occurrences of `actions-rs/cargo` are replaced by direct invocations of `cargo`.
34 lines
897 B
YAML
34 lines
897 B
YAML
name: "cross-tests"
|
|
|
|
inputs:
|
|
rust:
|
|
required: true
|
|
package:
|
|
required: true
|
|
target:
|
|
required: true
|
|
features:
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: RustCrypto/actions/cargo-cache@master
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ inputs.rust }}
|
|
targets: ${{ inputs.target }}
|
|
- uses: RustCrypto/actions/cross-install@master
|
|
- if: ${{ inputs.features != 'NO_FEATURE' }}
|
|
run: |
|
|
cd ${{ inputs.package }}
|
|
cross test --target ${{ inputs.target }} --no-default-features \
|
|
--features ${{ inputs.features }}
|
|
shell: bash
|
|
- if: ${{ inputs.features == 'NO_FEATURE' }}
|
|
run: |
|
|
cd ${{ inputs.package }}
|
|
cross test --target ${{ inputs.target }} --no-default-features
|
|
shell: bash
|