Skip to content

Update build.yml

Update build.yml #4

Workflow file for this run

name: Build
on:
pull_request:
types: [opened, synchronize]
push:
tags:
- '*'
branches:
- master
workflow_dispatch:
# Allow to run manually
concurrency:
# Cancel previous runs of this workflow for the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13-dev']
polymake-version: ['4.10']
env:
POLYMAKE_PREFIX: polymake-${{ matrix.polymake-version }}-linux-x86_64
steps:
- name: Set up the repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
curl https://polymake.org/downloads/polymake-${{ matrix.polymake-version }}-linux-x86_64.tar.gz | tar xzf -
- name: Build
run: |
export PATH=$(pwd)/$POLYMAKE_PREFIX/bin:$PATH
export LIBRARY_PATH=$(pwd)/$POLYMAKE_PREFIX/lib:$LIBRARY_PATH
export CPATH=$(pwd)/$POLYMAKE_PREFIX/include:$CPATH
python -m build
- name: Install and test
run: |
python -m pip install dist/*.whl
python example.py