Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed Oct 30, 2024
1 parent 9c18557 commit 2a05bd8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}"

0 comments on commit 2a05bd8

Please sign in to comment.