-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.43 KB
/
wheels.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
45
46
47
48
49
50
51
52
53
name: Build Wheels
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_wheels:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Initial Setup
run: |
sudo bash ./scripts/setup_ubuntu
export PATH="/opt/drake/bin${PATH:+:${PATH}}"
export PYTHONPATH="/opt/drake/lib/python$(python3 -c 'import sys; print("{0}.{1}".format(*sys.version_info))')/site-packages${PYTHONPATH:+:${PYTHONPATH}}"
export LD_LIBRARY_PATH="/opt/drake/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
pip3 wheel . -w ./wheels
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: drake_extension_jammy_py310.whl
path: wheels/*.whl
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: install_dependencies
path: ./scripts/setup_ubuntu
test_wheels:
needs: build_wheels
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v4
with:
name: drake_extension_jammy_py310.whl
- uses: actions/download-artifact@v4
with:
name: install_dependencies
- name: Display structure of downloaded files
run: ls -R
- name: Install and test
run: |
sudo bash setup_ubuntu
pip3 install ./drake_extension-0.0.1-cp310-cp310-linux_x86_64.whl
python3 -c 'import drake_extension'