mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: introduce v benchmarks inside the ci workflow (#13949)
This commit is contained in:
parent
d34ef69229
commit
4666a27e5f
35
.github/workflows/ci_v_benchmark.yml
vendored
Normal file
35
.github/workflows/ci_v_benchmark.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: vlang benchmarks
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Run
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Install google benchmark
|
||||
run: |
|
||||
git clone https://github.com/google/benchmark.git
|
||||
cd benchmark
|
||||
cmake -E make_directory "build"
|
||||
cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../
|
||||
sudo cmake --build "build" --config Release --target install
|
||||
- name: Run V benchmark
|
||||
run: |
|
||||
make
|
||||
sudo ./v symlink
|
||||
git clone https://github.com/vincenzopalazzo/benchmarks.git
|
||||
cd benchmarks
|
||||
make vdep && make v
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vlang-benchmark
|
||||
path: benchmarks/vlang/*.json
|
Loading…
Reference in New Issue
Block a user