Skip to content

example/java: simplify crdt example #132

example/java: simplify crdt example

example/java: simplify crdt example #132

Workflow file for this run

name: build-rs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
paths:
- '.github/**-rs.yml'
- 'rust/**'
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
sparse-checkout-cone-mode: false
sparse-checkout: |
rust
- name: fmt
run: cd rust && cargo fmt --all -- --check
- name: clippy
run: cd rust && cargo clippy --all-targets --all-features -- -D warnings
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: cd rust && cargo build --verbose
- name: run tests
run: cd rust && cargo test --verbose
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: llvm-tools-preview
- name: Download grcov
run: |
mkdir -p "${HOME}/.local/bin"
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.18/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Coverage
run: cd rust && cargo run --manifest-path ./xtask/Cargo.toml -- coverage
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: rust/coverage/*.lcov
flags: rust