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 cdd55cb commit 26c4560
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci
on:
push:
branches: [main,ci]
pull_request:

jobs:
test:
name: cargo test
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
steps:
- run: sudo apt-get install -y musl-tools
if: "contains(matrix.target, '-musl')"
- run: sudo apt-get install -y protobuf-compiler
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.target }}"
- run: "cargo test --target ${{ matrix.target }}"
- run: "cargo build --target ${{ matrix.target }}"

0 comments on commit 26c4560

Please sign in to comment.