napi-rs/.github/workflows/check-all-features.yml
2023-03-12 18:31:13 +08:00

56 lines
1.1 KiB
YAML

name: Check NAPI-RS features
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
features:
[
'napi3',
'napi4',
'napi5',
'napi6',
'napi7',
'napi8',
'experimental',
'async',
'chrono_date',
'latin1',
'full',
]
name: stable - ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: stable-check-ubuntu-latest-cargo-cache-features-${{ matrix.features }}
- name: Check build
uses: actions-rs/cargo@v1
with:
command: check
args: -p napi --no-default-features --features ${{ matrix.features }}