Skip to content

Commit

Permalink
ci: 🎡 fix musllinux platform ids and invoke semantic-release manually
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Aug 7, 2023
1 parent d73d9c1 commit 472bc99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ jobs:
- os: ubuntu-latest
python: 3.8
python_id: 38
platform_id: musslinux_1_1
platform_id: musslinux_x86_64
- os: ubuntu-latest
python: 3.9
python_id: 39
platform_id: musslinux_1_1
platform_id: musslinux_x86_64
- os: ubuntu-latest
python: "3.10"
python_id: 310
platform_id: musslinux_1_1
platform_id: musslinux_x86_64
- os: ubuntu-latest
python: "3.11"
python_id: 311
platform_id: musslinux_1_1
platform_id: musslinux_x86_64

# MacOS x86_64
- os: macos-latest
Expand Down Expand Up @@ -92,14 +92,9 @@ jobs:
python-version: ${{ matrix.python }}
cache: true

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@v8.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
push: "false"

- name: Build source distribution
run: |
pdm run semantic-release version
pdm build --no-wheel
- name: Build and test wheels
Expand Down
6 changes: 3 additions & 3 deletions build_tools/wheels/build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ set -euxo pipefail
# Only applicable to macOS builds
HYPERSCAN_VERSION=${HYPERSCAN_VERSION:-v5.4.2}
HYPERSCAN_BUILD_TYPE=${HYPERSCAN_BUILD_TYPE:-Release}
PCRE_VERSION="${PCRE_VERSION:-10.42}"
PCRE_VERSION="${PCRE_VERSION:-8.45}"

if [[ $(uname) == "Darwin" ]]; then
export MACOSX_DEPLOYMENT_TARGET="10.14"
mkdir -p /tmp/hyperscan
cd /tmp/hyperscan
brew install boost cmake git pkg-config python@3.11 ragel wget
wget -qO- https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PCRE_VERSION}/pcre2-${PCRE_VERSION}.tar.gz | tar xvz
cd "pcre2-${PCRE_VERSION}"
wget -qO- https://sourceforge.net/projects/pcre/files/pcre/${PCRE_VERSION}/pcre-${PCRE_VERSION}.tar.gz/download | tar xvz
cd "pcre-${PCRE_VERSION}"
./configure --prefix=/usr/local --enable-unicode-properties --enable-utf
nproc=$(sysctl -n hw.logicalcpu)
make -j${nproc} && make install
Expand Down

0 comments on commit 472bc99

Please sign in to comment.