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

Skip to content

Commit 0a744f1

Browse files
author
rknizzle
committed
STUB 12
1 parent b1893f0 commit 0a744f1

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/build-wheels.yml

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

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

2448
steps:
@@ -34,12 +58,10 @@ jobs:
3458
brew install wget cmake
3559
fi
3660
37-
# TODO: Musl? Does the original project use musllinux? No its just manylinux
3861
- name: Build wheels using cibuildwheel
3962
uses: pypa/[email protected]
4063
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"
64+
# Build CPython and PyPy wheels for x86_64 linux
4365
CIBW_BUILD: "*p3*-manylinux_x86_64"
4466
CIBW_BEFORE_BUILD_LINUX: |
4567
rpm -q admesh-devel || yum install -y --nogpgcheck /project/travis/*.x86_64.rpm; pip install Cython

0 commit comments

Comments
 (0)