Skip to content

Commit

Permalink
actions: add Apple M support
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Feb 16, 2024
1 parent 6d10327 commit 8063474
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
name: windows-build
path: dist/

build-macos:
runs-on: macos-latest
build-macos-intel:
runs-on: macos-12
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
Expand Down Expand Up @@ -88,5 +88,46 @@ jobs:
- name: Store build artifacts
uses: actions/upload-artifact@v3
with:
name: macos-build
name: macos-intel-build
path: dist/

build-macos-arm:
runs-on: macos-14
strategy:
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade cffi wheel delocate pytest setuptools
- name: Build and install CLIPS
run: |
make clips
sudo make install-clips
- name: Build CLIPSPy
run: |
make clipspy
- name: Repair wheels
run: |
for whl in $(ls dist | grep .whl); do
delocate-wheel -v "dist/$whl"
done
- name: Install CLIPSPy
run: |
pip install dist/*.whl
- name: Run tests
run: |
# Run test from outside module to test installed package
cd ../
python -m pytest -v clipspy/test
- name: Store build artifacts
uses: actions/upload-artifact@v3
with:
name: macos-arm-build
path: dist/

0 comments on commit 8063474

Please sign in to comment.