lib/codecs: add pretty option to JsonSerializerConfig (#1821) #1641
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Baseline | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: {} | |
permissions: | |
deployments: write | |
contents: write | |
env: | |
CI: true | |
jobs: | |
cancel-previous: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 3 | |
steps: | |
- uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
all_but_latest: true # can cancel workflows scheduled later | |
baseline: | |
name: Baseline | |
runs-on: ubuntu-20.04 | |
needs: | |
- cancel-previous | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo -E bash ci/environment/bootstrap-ubuntu-20.04.sh | |
- run: bash ci/prepare.sh | |
- run: cargo build --release 2>&1 | tee build.txt | |
- run: bash ./ci/extract_baseline_metrics.sh > build.json | |
- name: Store bench results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Build | |
tool: customSmallerIsBetter | |
output-file-path: build.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
comment-on-alert: true | |
benchmark-data-dir-path: bench | |
max-items-in-chart: 100 |