-
Notifications
You must be signed in to change notification settings - Fork 283
44 lines (38 loc) · 1.2 KB
/
plot-k27.yaml
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
name: Plot k=27
on: [push, pull_request]
jobs:
build_wheels:
name: Plot k=27 on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'
- name: cmake, Plot k=27
run: |
mkdir build
cd build
cmake ../
cmake --build . -- -j 6
mkdir plots
mkdir plots/temp
mkdir plots/final
pip install wheel
pip install psutil
python ../tests/plot-resources.py -k 27 -r 2
EXPECTED_SHA="1f144aa10df010a557009c0c032926cfff58fd5e6b4a5317caca5c405b08163a plots/final/plot.dat"
SHACHECK=$(sha256sum plots/final/plot.dat)
echo "$SHACHECK"
if [ "$SHACHECK" != "$EXPECTED_SHA" ]; then echo "Sha256sum does not match"; exit 1; else echo "Sha256sum matches 0x1f144aa1...163a"; fi