Skip to content

Commit

Permalink
actions: enable other build jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Sep 5, 2023
1 parent 862174c commit b66f5b4
Showing 1 changed file with 51 additions and 44 deletions.
95 changes: 51 additions & 44 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,56 @@
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: manylinux-build
# path: manylinux/wheelhouse
# build-windows:
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: ['3.8', '3.9', '3.10', '3.11']
# 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
# nmake /F Makefile.win
# - name: Install CLIPSPy
# run: |
# pip install dist/*.whl
# - name: Run tests
# run: |
# python -m pytest -v
# - name: Store build artifacts
# uses: actions/upload-artifact@v3
# with:
# name: windows-build
# path: dist/
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: manylinux-build
path: manylinux/wheelhouse

build-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
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
nmake /F Makefile.win
- 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: windows-build
path: dist/

build-macos:
runs-on: macos-latest
strategy:
Expand Down Expand Up @@ -76,6 +82,7 @@ jobs:
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
Expand Down

0 comments on commit b66f5b4

Please sign in to comment.