Commit adb4fd8 1 parent 35911e5 commit adb4fd8 Copy full SHA for adb4fd8
File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,12 @@ jobs:
29
29
30
30
- name : Install dependencies
31
31
run : |
32
- set -a
33
- . ./dependency_versions
34
- set +a
35
32
./docker/common/install-dependencies
36
33
37
34
- name : Python package
38
35
run : |
39
36
yum -y install zip
40
- ./docker/common/manylinux-build-wheels
37
+ LIBFRANKA_VERSION=${{ inputs.libfranka-version }} ./docker/common/manylinux-build-wheels
41
38
42
39
- name : Upload wheels
43
40
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ RUN mkdir -p /build
21
21
VOLUME /code
22
22
VOLUME /build
23
23
WORKDIR /build
24
- ADD docker/common/manylinux-build-wheels /usr/bin/build-wheels
24
+ ADD docker/common/manylinux-build-wheels /usr/bin/manylinux-build-wheels
25
+ ADD docker/build/build-wheels /usr/bin/
25
26
ADD docker/build/run-tests /usr/bin/
26
27
27
28
# Cleaning up
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ CODE_DIR=" ${1:- $(pwd)} "
5
+
4
6
# Log python versions
5
7
echo " Found the following Python versions:"
6
8
for PYBIN in /opt/python/* /bin; do
@@ -10,14 +12,16 @@ for PYBIN in /opt/python/*/bin; do
10
12
done
11
13
12
14
# Build python wheels
13
- mkdir -p wheels
15
+ WHEELS_DIR=" $( pwd) /wheels"
16
+ mkdir -p " ${WHEELS_DIR} "
14
17
mkdir -p dist
15
18
mkdir -p dist_full
16
19
17
20
# Compile wheels
18
21
for PYBIN in /opt/python/* /bin; do
22
+ PYBIN_NAME=" $( basename " $( dirname " $PYBIN " ) " ) "
19
23
if [[ " ${PYBIN} " =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then
20
- " $ {PYBIN} /pip" wheel /code -w wheels/
24
+ (mkdir -p " $PYBIN_NAME " && cd " $PYBIN_NAME " && " $ {PYBIN} /pip" wheel " $CODE_DIR " -w " ${WHEELS_DIR} " )
21
25
fi
22
26
done
23
27
@@ -42,5 +46,4 @@ echo "Built the following wheels:"
42
46
ls dist
43
47
44
48
mkdir -p output
45
- libfranka_version=${{ inputs.libfranka-version } }
46
- zip -r " output/libfranka_${libfranka_version// ./ -} _wheels.zip" dist/
49
+ zip -r " output/libfranka_${LIBFRANKA_VERSION// ./ -} _wheels.zip" dist/
You can’t perform that action at this time.
0 commit comments