2022-04-07 12:21:13 +03:00
|
|
|
name: vlang benchmarks
|
|
|
|
|
|
|
|
on:
|
2022-05-15 09:06:01 +03:00
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
2022-04-07 12:21:13 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
run:
|
|
|
|
name: Run
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-22 20:19:04 +03:00
|
|
|
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
|
2022-04-07 12:21:13 +03:00
|
|
|
steps:
|
2022-05-12 23:29:37 +03:00
|
|
|
- name: Checkout
|
2023-02-21 14:40:24 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-05-12 23:29:37 +03:00
|
|
|
- name: Install google benchmark
|
|
|
|
run: |
|
2022-04-07 12:21:13 +03:00
|
|
|
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
|
2022-05-12 23:29:37 +03:00
|
|
|
- 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
|