Skip to content

actions: add Apple M support #64

actions: add Apple M support

actions: add Apple M support #64

Workflow file for this run

name: CLIPSPy build job
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Manylinux Container
run: |
docker build -t clipspy-build-wheels:latest -f manylinux/Dockerfile .
- name: Build Manylinux packages
run: |
docker run --rm -v `pwd`/manylinux/wheelhouse:/io/wheelhouse clipspy-build-wheels:latest
- name: Store build artifacts
uses: actions/upload-artifact@v3
with:
name: linux-build
path: manylinux/wheelhouse
build-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
# Install nmake
- uses: ilammy/msvc-dev-cmd@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build CLIPSPy
run: |
python -m pip install --upgrade pip
pip install --upgrade cffi wheel pytest setuptools
nmake /F Makefile.win
- name: Install CLIPSPy
run: |
pip install --find-links=dist clipspy
- 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: windows-build
path: dist/
build-macos-intel:
runs-on: macos-12
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '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 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-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: |
sudo make install-clips
- name: Build CLIPSPy
run: |
sudo 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/