mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
27 lines
701 B
YAML
27 lines
701 B
YAML
name: json decoder benchmark CI
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'vlib/x/json2/decoder2/**' # Trigger on changes in this folder
|
|
|
|
jobs:
|
|
json-encode-benchmark:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Build V
|
|
run: make && ./v symlink
|
|
|
|
- name: Run V benchmark and save output
|
|
run: (echo '```sh'; v -prod crun vlib/x/json2/decoder2/tests/bench.v; echo '```') > vlib/x/json2/decoder2/tests/bench_out.md
|
|
|
|
- name: Upload result file
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: program-output
|
|
path: vlib/x/json2/decoder2/tests/bench_out.md
|