-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (73 loc) · 2.42 KB
/
ci-pivoted.yml
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
74
75
76
name: Show pretty table
on:
push:
branches:
- main
pull_request:
# BEWARE: Github broke CI for everyone using older distros
# (including Ubuntu LTS):
# https://github.com/actions/checkout/issues/1590
# To make sure the CI doesn't break, export this variable
# and stick to actions/checkout@v3.
# This ugly hack is still expected to break at some point.
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
run-experiments:
runs-on: ubuntu-latest
container:
image: ghcr.io/opencompl/snitch-toolchain:2.10
options: --volume ${{ github.workspace }}:/src
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies in venv
run: |
python3 -m venv venv
. venv/bin/activate
pip install -r /src/requirements.txt
- name: Clean and make pivoted
run: |
. venv/bin/activate
cp results/pivoted.csv results/pivoted_old.csv.txt
make clean
make
- name: Check pivoted has not changed
run: |
cd /src/
./scripts/nodiff.sh results/pivoted.csv results/pivoted_old.csv.txt
- name: Read Cycles CSV
id: cycles-csv
uses: juliangruber/[email protected]
with:
path: results/pivoted.csv
# - name: Create MD
# uses: petems/csv-to-md-table-action@master
# id: cycles-csv-table-output
# with:
# csvinput: ${{ steps.cycles-csv.outputs.content }}
- uses: mshick/add-pr-comment@v1
with:
message: |
${{steps.cycles-csv.outputs.content}}
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: "github-actions[bot]" # The user.login for temporary GitHub tokens
allow-repeats: true
- name: Read FPU CSV
id: fpu-csv
uses: juliangruber/[email protected]
with:
path: results/pivoted_fpu.csv
# - name: Create MD
# uses: petems/csv-to-md-table-action@master
# id: fpu-csv-table-output
# with:
# csvinput: ${{ steps.fpu-csv.outputs.content }}
- uses: mshick/add-pr-comment@v1
with:
message: |
${{steps.fpu-csv.outputs.content}}
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: "github-actions[bot]" # The user.login for temporary GitHub tokens
allow-repeats: true