Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
apcamargo committed Dec 20, 2024
1 parent b73bcd3 commit 33d8163
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,31 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
# If we're running on rhel centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
fi
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: "true"
manylinux: auto
- name: Install wheel
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
python -c "import pycoverm"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -53,13 +71,31 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
# If we're running on rhel centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
fi
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: "true"
manylinux: musllinux_1_2
- name: Install wheel
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
python -c "import pycoverm"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -86,6 +122,10 @@ jobs:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: "true"
- name: Install wheel
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
python -c "import pycoverm"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 33d8163

Please sign in to comment.