Skip to content

Commit

Permalink
Lock rust to 1.84 and keep trying to fix hyper-util issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Jan 27, 2025
1 parent 78ad8ba commit 0a7d05b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 19 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
on: [push, pull_request]

name: Code coverage with grcov
env:
CARGO_TERM_COLOR: always

name: Rust CI

jobs:
grcov:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
test:
name: Test Suite
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --features ci

coverage:
name: Code Coverage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install toolchain
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
Expand Down Expand Up @@ -53,11 +66,11 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info
flag-name: run-${{ matrix.os }}
flag-name: run-ubuntu-latest
parallel: true

grcov_finalize:
needs: grcov
coverage_finalize:
needs: coverage
runs-on: ubuntu-latest
steps:
- name: Coveralls finalization
Expand Down
5 changes: 2 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env_logger = "0.11.5"
futures = "0.3.30"
gcloud-sdk = { version = "0.25.6", features = ["google-pubsub-v1"] }
hyper = "1.4.1"
hyper-util = { version = "=0.1.6", features = ["client", "http1", "client-legacy"] }
hyper-util = { version = "0.1.10", features = ["client", "http1", "client-legacy"] }
log = "0.4.22"
metrics = "0.23.0"
metrics-exporter-prometheus = "0.15.3"
Expand Down
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "1.84.0"
components = ["rustfmt", "clippy"]
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin"]

0 comments on commit 0a7d05b

Please sign in to comment.