Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7071ab3

Browse files
author
rknizzle
committed
STUB 12
1 parent b1893f0 commit 7071ab3

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/build-wheels.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,35 @@ on:
1212

1313
jobs:
1414
# TODO: Test before wheel building
15+
test:
16+
name: Test
17+
runs-on: ${{ matrix.os }}
18+
#strategy
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
- name: Install admesh
23+
# TODO: Do I need to install wget?
24+
run: |
25+
if [ ! -f admesh-$ADMESH/.libs/admesh ]; then
26+
wget https://github.com/admesh/admesh/releases/download/v$ADMESH/admesh-$ADMESH.tar.gz;
27+
tar -zxf admesh-$ADMESH.tar.gz;
28+
cd admesh-$ADMESH;
29+
"./configure";
30+
make;
31+
mkdir src/admesh;
32+
cp src/stl.h src/admesh/stl.h;
33+
cd ..;
34+
fi
35+
36+
python -m pip install tox Cython
37+
LD_LIBRARY_PATH=$PWD/admesh-$ADMESH/.libs LDFLAGS=-L$PWD/admesh-$ADMESH/.libs CFLAGS=-I$PWD/admesh-$ADMESH/src tox
1538
1639
build_wheels:
1740
name: Build wheels on ${{ matrix.os }}
1841
runs-on: ${{ matrix.os }}
1942
strategy:
2043
matrix:
21-
#os: [ubuntu-latest, windows-latest, macos-13, macos-14]
2244
os: [ubuntu-latest]
2345

2446
steps:
@@ -34,12 +56,10 @@ jobs:
3456
brew install wget cmake
3557
fi
3658
37-
# TODO: Musl? Does the original project use musllinux? No its just manylinux
3859
- name: Build wheels using cibuildwheel
3960
uses: pypa/[email protected]
4061
env:
41-
#CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*"
42-
#CIBW_BUILD: "cp38-*_x86_64 cp39-*_x86_64 cp310-*_x86_64 cp311-*_x86_64 cp312-*_x86_64"
62+
# Build CPython and PyPy wheels for x86_64 linux
4363
CIBW_BUILD: "*p3*-manylinux_x86_64"
4464
CIBW_BEFORE_BUILD_LINUX: |
4565
rpm -q admesh-devel || yum install -y --nogpgcheck /project/travis/*.x86_64.rpm; pip install Cython

0 commit comments

Comments
 (0)