napi-rs/.github/workflows/check-all-features.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2022-04-15 22:03:14 +09:00
name: Check NAPI-RS features
on:
push:
branches:
- main
pull_request:
2023-03-12 19:31:13 +09:00
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2022-04-15 22:03:14 +09:00
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
settings:
- features: 'napi1,napi2,napi3,napi4,napi5,napi6,napi7,napi8,experimental,async,chrono_date,latin1,full'
package: 'napi'
- features: 'compat-mode,strict,type-def,noop,full,default'
package: 'napi-derive'
2022-04-15 22:03:14 +09:00
name: stable - ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
2023-03-12 19:24:48 +09:00
uses: dtolnay/rust-toolchain@stable
2022-04-15 22:03:14 +09:00
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.settings.package }}-${{ matrix.features }}
2022-04-15 22:03:14 +09:00
- name: Check build
run: cargo check -p ${{ matrix.settings.package }} -F ${{ matrix.settings.features }}