diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 355ed5a..c123a82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + features: + - rust + - lua + - java + - js + - python toolchain: - stable # - beta # - nightly - # disable other toolchains to save on github runners + # TODO should re-enable future toolchains so we get warnings on breaking changes steps: - uses: arduino/setup-protoc@v2 - uses: actions/checkout@v3 @@ -27,5 +33,5 @@ jobs: with: ssh-private-key: ${{ secrets.ACTIONS_SSH_DEPLOY_KEY }} - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: cargo build --verbose --all-features - - run: cargo test --verbose --all-features + - run: cargo build --verbose --features=${{ matrix.features }} + - run: cargo test --verbose --features=${{ matrix.features }} diff --git a/Cargo.toml b/Cargo.toml index b78f720..6d1cd58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,6 +51,7 @@ pyo3-build-config = { version = "0.19", optional = true } [features] default = [] +rust = [] # used for ci matrix lua = ["mlua", "tracing-subscriber"] java = ["lazy_static", "jni", "tracing-subscriber"] js = ["napi-build", "tracing-subscriber", "napi", "napi-derive"]