mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
ci: build with each feature, not all
This commit is contained in:
parent
3a98178919
commit
417e6928cf
2 changed files with 10 additions and 3 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue