-
Notifications
You must be signed in to change notification settings - Fork 34
101 lines (101 loc) · 2.87 KB
/
build_dependencies.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Reusable Build Dependencies
defaults:
run:
shell: bash -ieo pipefail {0}
on:
workflow_call:
inputs:
bpb:
description: build bpb
type: boolean
default: true
required: false
qpSWIFT:
description: build qpSWIFT
type: boolean
default: true
required: false
jobs:
build_and_cache_bpb:
runs-on: ubuntu-20.04
steps:
- name: load bpb
id: load-bpb
uses: actions/cache@v3
with:
path: ~/bpb
key: bpb
- if: ${{ steps.load-bpb.outputs.cache-hit != 'true' }}
name: install pybullet
run: |
sudo pip3 install numpy
mkdir -p ~/bpb
cd ~/bpb
git clone https://github.com/SemRoCo/bullet3.git
cd bullet3
./build_better_pybullet.sh
- if: ${{ steps.load-bpb.outputs.cache-hit != 'true' }}
name: cache bpb
id: cache-bpb
uses: actions/cache/save@v3
with:
path: ~/bpb
key: bpb
- if: ${{ (always()) && (runner.debug == '1') }}
name: Setup upterm session
uses: lhotari/action-upterm@v1
build_and_cache_qpSWIFT:
runs-on: ubuntu-20.04
steps:
- name: load qpSWIFT
id: load-qpSWIFT
uses: actions/cache@v3
with:
path: ~/qpSWIFT
key: qpSWIFT
- if: ${{ steps.load-qpSWIFT.outputs.cache-hit != 'true' }}
name: compile qpSWIFT
run: |
sudo pip3 install numpy
cd ~
git clone https://github.com/qpSWIFT/qpSWIFT
cd qpSWIFT
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
sudo cmake --build build --target install
- if: ${{ steps.load-qpSWIFT.outputs.cache-hit != 'true' }}
name: cache qpSWIFT
id: cache-qpSWIFT
uses: actions/cache/save@v3
with:
path: ~/qpSWIFT
key: qpSWIFT
- if: ${{ (always()) && (runner.debug == '1') }}
name: Setup upterm session
uses: lhotari/action-upterm@v1
create_pip_cache:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: load pip cache
id: pip-load
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip
- if: ${{ steps.pip-load.outputs.cache-hit != 'true' }}
name: install pip requirements
run: |
sudo apt install libeigen3-dev
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
- if: ${{ steps.pip-load.outputs.cache-hit != 'true' }}
name: cache pip
id: cache-pip
uses: actions/cache/save@v3
with:
path: ~/.cache/pip
key: pip
- if: ${{ (always()) && (runner.debug == '1') }}
name: Setup upterm session
uses: lhotari/action-upterm@v1