-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (62 loc) · 1.82 KB
/
benchmark_linux.yaml
File metadata and controls
73 lines (62 loc) · 1.82 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
65
66
67
68
69
70
71
72
73
name: Run Benchmarks (Linux)
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# Every day at 00:00
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
linux-build:
name: Run Benchmarks on Linux (ubuntu-latest)
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
ref: ${{ steps.extract_branch.outputs.branch }}
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest
- name: Update Libraries
continue-on-error: true
run: |
cd lib
cd librapid
git checkout master
git pull
- name: Build the Benchmarks
run: |
mkdir build
cd build
cmake .. -DUSING_GITHUB_ACTIONS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DLIBRAPID_GET_BLAS=on -DLIBRAPID_USE_MULTIPREC=on
cmake --build . --config Release
env:
CC: gcc-11
CXX: g++-11
- name: Run Benchmark
run: |
cd build
ls
./BenchmarksCPP
- name: Push Changes
continue-on-error: true
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions@users.noreply.github.com"
git add -A
git commit -m "Update GitHub Actions Benchmark Results"
git push origin master
- name: Upload Benchmark Results
uses: actions/upload-artifact@v2
with:
name: arithmeticResults
path: build/arithmeticResults.txt