forked from intel/compile-time-init-build
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.18 KB
/
performance_test.yml
File metadata and controls
41 lines (32 loc) · 1.18 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
name: Performance Tests
on:
workflow_dispatch:
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Debug
jobs:
performance_test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install compiler
run: sudo apt update && sudo apt-get install -y clang-12
- name: Configure CMake
env:
CC: clang-12
CXX: clang++-12
CXX_STANDARD: 20
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
id: build_step
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -t compilation_benchmark |& tee ${{github.workspace}}/build/compilation_output.log
echo "::set-output name=compile_benchmark_time::"`grep "Clang front-end timer" ${{github.workspace}}/build/compilation_output.log | grep -o "^\s\+\S\+\s" | grep -o "\S\+"`
- name: 'Upload Compilation Trace'
uses: actions/upload-artifact@v3
with:
name: compilation_trace.json
path: ${{github.workspace}}/build/benchmark/CMakeFiles/compilation_benchmark.dir/big_nexus.cpp.json