mirror of
https://github.com/logos-blockchain/sponges.git
synced 2026-07-30 18:43:13 +00:00
36 lines
942 B
YAML
36 lines
942 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: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ inputs.rust }}
|
|
target: ${{ inputs.target }}
|
|
override: true
|
|
- 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
|