Skip to content

Change rust to 1.88 version, and cargo edition to 2024 #98

Change rust to 1.88 version, and cargo edition to 2024

Change rust to 1.88 version, and cargo edition to 2024 #98

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v4
# on windows we need to install openssl
- name: Get vcpkg
if: runner.os == 'Windows'
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: dd3adcf020e69077e83e92a0a293ceca734f6288
- name: vcpkg install
if: runner.os == 'Windows'
run: vcpkg install openssl:x64-windows-static-md
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.88.0
components: rustfmt, clippy
- uses: taiki-e/install-action@protoc
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Run cargo check
run: cargo check
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings
- name: Run cargo test
run: cargo test --all -- --nocapture
- name: Run llvm-cov
run: cargo llvm-cov --codecov --output-path codecov.json --ignore-filename-regex tonic-tls-tests.*
- name: Show cov summary
run: cargo llvm-cov report --summary-only --ignore-filename-regex tonic-tls-tests.*
- name: Upload Report to Codecov
uses: codecov/codecov-action@v4
with:
files: ./codecov.json
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }} # required