From d1f8a00a0094252b02137644e3d13fbedab9c81e Mon Sep 17 00:00:00 2001 From: Sami Virpioja Date: Wed, 13 Mar 2024 21:39:32 +0200 Subject: [PATCH] add macos-14 build to github workflows --- .github/workflows/release-github.yaml | 56 +++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-github.yaml b/.github/workflows/release-github.yaml index 7ccc4e6..a2134d1 100644 --- a/.github/workflows/release-github.yaml +++ b/.github/workflows/release-github.yaml @@ -43,8 +43,8 @@ jobs: run: | curl -L -o $MINICONDA_FILENAME "https://repo.continuum.io/miniconda/$MINICONDA_FILENAME" bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3 - echo "::add-path::$HOME/miniconda3/bin" - echo "::add-path::$HOME/miniconda3/Scripts" + echo "$HOME/miniconda3/bin" >> $GITHUB_PATH + echo "$HOME/miniconda3/Scripts" >> $GITHUB_PATH conda init - name: Download and build dependencies @@ -72,6 +72,50 @@ jobs: name: macos-wheels path: dist/*.whl + build-wheels-macos-14: + runs-on: macos-14 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + MINICONDA_FILENAME: Miniconda3-latest-MacOSX-arm64.sh + CC: clang + CXX: clang++ + + steps: + - uses: actions/checkout@v4 + + - name: Download and install miniconda + shell: bash + run: | + curl -L -o $MINICONDA_FILENAME "https://repo.continuum.io/miniconda/$MINICONDA_FILENAME" + bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3 + echo "::add-path::$HOME/miniconda3/bin" + echo "::add-path::$HOME/miniconda3/Scripts" + conda init + + - name: Download and build dependencies + run: | + eval "$(conda shell.bash hook)" + conda create -n meson python=3.8 + conda activate meson + conda install -y meson + brew install pcre + make download-build-static-deps + conda deactivate + + - name: Build and upload packages + run: | + eval "$(conda shell.bash hook)" + for VERSION in 3.6 3.7 3.8 3.9 3.10 3.11; do + conda create -n py$VERSION python=$VERSION + conda activate py$VERSION + STATIC_LIBS=1 python setup.py build_ext bdist_wheel + conda deactivate + done + + - uses: actions/upload-artifact@v4 + with: + name: macos14-wheels + path: dist/*.whl build-wheels-linux: runs-on: ubuntu-latest @@ -95,8 +139,9 @@ jobs: needs: - build-sdist - - build-wheels-macos - build-wheels-linux + - build-wheels-macos + - build-wheels-macos-14 steps: - uses: actions/download-artifact@v4 @@ -109,6 +154,11 @@ jobs: name: macos-wheels path: dist + - uses: actions/download-artifact@v4 + with: + name: macos14-wheels + path: dist + - uses: actions/download-artifact@v4 with: name: source