-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 906 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: ci
on:
push:
branches: [main,ci]
pull_request:
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- target: x86_64-unknown-linux-gnu
features: "default"
- target: x86_64-unknown-linux-musl
features: "rustls"
steps:
- run: sudo apt-get install -y musl-tools
if: "${{ contains(matrix.platform.target, '-musl') }}"
- run: sudo apt-get install -y protobuf-compiler
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.platform.target }}"
- run: "cargo test --target ${{ matrix.platform.target }} --no-default-features --features ${{ matrix.platform.features }}"
- run: "cargo build --target ${{ matrix.platform.target }} --no-default-features --features ${{ matrix.platform.features }}"