-
Notifications
You must be signed in to change notification settings - Fork 19
69 lines (58 loc) · 1.53 KB
/
auto-record.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
name: auto-record
on:
push:
branches:
- dev
paths:
- 'mapf/**'
- 'tests/**'
- 'app.cpp'
- 'auto_record/**'
- '.github/workflows/auto-record.yml'
jobs:
auto-record:
runs-on: ubuntu-latest
steps:
- name: setup-python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: install-dependencies
run: pip install matplotlib
- uses: actions/checkout@v2
with:
submodules: false
- uses: actions/checkout@v2
with:
repository: google/googletest
path: third_party/googletest
- uses: actions/checkout@v2
with:
repository: Kei18/grid-pathfinding
path: third_party/grid-pathfinding
- name: build
run: |
mkdir build
cd build
cmake ..
make
- name: auto-record
working-directory: auto_record
run: |
python record.py
- name: git setting
run: |
git config --local user.email keisuke.oku18@gmail.com
git config --local user.name Kei18
- name: deploy
run: |
git branch -r
git fetch --prune
git checkout -b auto_record origin/auto_record
ls -all
mv auto_record/readme.md readme.md
cp readme.md records/$(date "+%Y-%m-%d-%H-%M-%S").md
python create_fig.py
git add readme.md records/ fig/
git commit -m "auto record"
git push origin auto_record