do feature check in CI for each component seperately

This commit is contained in:
Zhang Jingqiang 2024-01-31 12:45:12 +08:00
parent 4a123591d1
commit d696016ca7
2 changed files with 18 additions and 4 deletions

View file

@ -58,6 +58,13 @@ jobs:
- vendored-tongsuo
- vendored-aws-lc
- vendored-c-ares
component:
- g3proxy
- g3bench
- g3tiles
- g3fcgen
- g3mkcert
- g3keymess
steps:
- name: Checkout sources
uses: actions/checkout@v4
@ -70,6 +77,6 @@ jobs:
sudo apt-get update
sudo apt-get install capnproto libc-ares-dev libssl-dev liblua5.4-dev
- name: Cargo build
run: cargo build --no-default-features --features ${{ matrix.feature }}
run: cargo build --no-default-features --features ${{ matrix.feature }} -p ${{ matrix.component }}
- name: Cargo clippy
run: cargo clippy --no-default-features --features ${{ matrix.feature }} -- --deny warnings
run: cargo clippy --no-default-features --features ${{ matrix.feature }} -p ${{ matrix.component }} -- --deny warnings