Skip to content

Commit

Permalink
add macos-14 build to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
svirpioj committed Mar 13, 2024
1 parent a85e033 commit d1f8a00
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions .github/workflows/release-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d1f8a00

Please sign in to comment.