forked from ChampSim/ChampSim
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (69 loc) · 2.17 KB
/
buildcheck.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
77
78
79
80
81
82
83
84
85
name: Build Check
on:
push:
branches:
- master
- develop
paths-ignore:
- '.gitignore'
- '*.md'
- '.github/workflows/*.yml'
# re-include current file to not be excluded
- '!.github/workflows/buildcheck.yml'
pull_request:
branches:
- master
- develop
paths-ignore:
- '.gitignore'
- '*.md'
- '.github/workflows/*.yml'
# re-include current file to not be excluded
- '!.github/workflows/buildcheck.yml'
jobs:
single_core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules : 'true'
- name: Set up
run: |
vcpkg/bootstrap-vcpkg.sh
vcpkg/vcpkg install
- name: Configure
run: ./config.sh
- name: Make
run: make
# TODO run an actual set of checks
- name: Run tests
run: ./bin/champsim -w50000000 -i50000000 --json=single_core_result.json -- <(curl -s https://dpc3.compas.cs.stonybrook.edu/champsim-traces/speccpu/400.perlbench-41B.champsimtrace.xz | xz -dc)
# We upload the generated files under github actions assets
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: champsim-singlecore-results
path: single_core_result.json
multi_core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules : 'true'
- name: Set up
run: |
vcpkg/bootstrap-vcpkg.sh
vcpkg/vcpkg install
- name: Configure
run: './config.sh <(echo "{\"num_cores\": 2}")'
- name: Make
run: make
# TODO run an actual set of checks
- name: Run tests
run: ./bin/champsim -w50000000 -i50000000 --json=multi_core_result.json -- <(curl -s https://dpc3.compas.cs.stonybrook.edu/champsim-traces/speccpu/400.perlbench-41B.champsimtrace.xz | xz -dc) <(curl -s https://dpc3.compas.cs.stonybrook.edu/champsim-traces/speccpu/401.bzip2-226B.champsimtrace.xz | xz -dc)
# We upload the generated files under github actions assets
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: champsim-multicore-results
path: multi_core_result.json