name: Test feature permutations
on:
pull_request:
types: [ labeled ]
env:
CARGO_TERM_COLOR: always
jobs:
test-features:
if: ${{ github.event.label.name == 'ready-to-merge' }}
runs-on: ubuntu-latest
strategy:
matrix:
alloc: ["", "alloc,"]
sync: ["", "sync,"]
oom_handling: ["", "oom_handling,"]
nightly: ["", "nightly,"]
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features=${{ matrix.alloc }}${{ matrix.sync }}${{ matrix.oom_handling }}${{ matrix.nightly }}