Skip to content

Commit

Permalink
Merge pull request #12 from sorah/ci
Browse files Browse the repository at this point in the history
ci
  • Loading branch information
sorah authored Oct 30, 2024
2 parents cdd55cb + 2a05bd8 commit fbaa513
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 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 }}"
17 changes: 16 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ license = "Apache-2.0"
[build-dependencies]
tonic-build = "0.12.3"

[features]
default = ["native-tls"]
native-tls = ["reqwest/default-tls"]
rustls = ["reqwest/rustls-tls-native-roots"]

[dependencies]
anyhow = { version = "1.0.91", features = ["backtrace"] }
async-recursion = "1.0.5"
Expand Down Expand Up @@ -38,7 +43,7 @@ process_path = "0.1.4"
prost = "0.13.3"
prost-types = "0.13.3"
rand = "0.8.5"
reqwest = { version = "0.12.9", features = ["json"] }
reqwest = { version = "0.12.9", default-features = false, features = ["charset", "http2", "macos-system-configuration", "json"] }
secrecy = { version = "0.10.0", features = ["serde"] }
serde = { version = "1.0.214", features = ["derive"] }
serde_json = "1.0.132"
Expand Down

0 comments on commit fbaa513

Please sign in to comment.