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 0b1c899 commit 98e0b13
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
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.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 }}"
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 98e0b13

Please sign in to comment.