Repository navigation
64 lines (57 loc) · 1.84 KB
/
Copy pathcodspeed.yml
File metadata and controls
64 lines (57 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CodSpeed
on:
push:
branches: [ dev ]
paths-ignore:
- '.github/workflows/benchmarks.yml'
- '.github/workflows/ci.yml'
- '.github/workflows/codeql.yml'
- '.github/workflows/docker.yml'
- '.github/workflows/label.yml'
- '.github/workflows/release.yml'
- '.github/workflows/static_analysis.yml'
- '.github/workflows/validate-links.yml'
- '.vscode/*.*'
- '.run/*.*'
- 'examples/*.ark'
- '.github/images/*.*'
- '*.md'
- 'docs/*.*'
- 'Dockerfile'
- '.dockerignore'
- 'LICENCE'
- 'packaging'
- 'tools'
- '.gitignore'
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-24.04
steps:
- name: Checkout ArkScript
uses: actions/checkout@v5
with:
submodules: recursive
- name: Setup compilers and tools
shell: bash
run: |
sudo apt-get install -y clang-16 lld-16 libc++-16-dev libc++abi-16-dev clang-tools-16
- name: Build the benchmark target
run: |
cmake -Bbuild \
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCODSPEED_MODE=instrumentation \
-DARK_BENCHMARKS=On -DARK_BENCHMARKS_CODSPEED=On \
-DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 \
-DARK_SANITIZERS=Off -DARK_BUILD_EXE=Off -DARK_BUILD_MODULES=Off \
-DARK_UNITY_BUILD=On
cmake --build build --config RelWithDebInfo -- -j 4
- name: Run the benchmarks
uses: CodSpeedHQ/action@c6574d0c2a990bca2842ce9af71549c5bfd7fbe0 # v4.2.1
with:
run: ./build/bench
token: ${{ secrets.CODSPEED_TOKEN }}
mode: instrumentation