Skip to content

[#10] feat(profile): enable heap profile with tikv-jemalloc #110

[#10] feat(profile): enable heap profile with tikv-jemalloc

[#10] feat(profile): enable heap profile with tikv-jemalloc #110

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
features:
- ""
- "memory-prof"
runs-on: ubuntu-latest
steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@3.20.3
- uses: actions/checkout@v3
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
if: ${ matrix.features == "" }

Check failure on line 45 in .github/workflows/dev.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/dev.yml (Line: 45, Col: 13): Unexpected symbol: '${'. Located at position 1 within expression: ${ matrix.features == "" } .github/workflows/dev.yml (Line: 48, Col: 13): Unexpected symbol: '${'. Located at position 1 within expression: ${ matrix.features == "memory-prof" }
- name: Build with memory-prof
run: cargo build --verbose --features memory-prof
if: ${ matrix.features == "memory-prof" }
- name: Code style check
run: cargo fmt --check
- name: Run tests
run: cargo test --verbose
if: ${ matrix.features == "" }
- name: Run tests with memory-prof
run: cargo test --verbose --features memory-prof
if: ${ matrix.features == "memory-prof" }