Skip to content

Build Standalone

Build Standalone #1720

Workflow file for this run

name: Build Standalone
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-22.04 # version does not exist on later versions of Ubuntu
python-version: '3.7'
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ matrix.python-version }}-${{ matrix.os }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: |
# pyinstaller and setuptools have some version conflicts, cf https://gemini.google.com/share/7d74f17e6391
python -m pip install pyinstaller 'setuptools<71'
python -m pip install -r requirements.txt
- run: make standalone
- name: Upload standalone
uses: actions/upload-artifact@v7
with:
name: standalone-${{ matrix.python-version }}-${{ matrix.os }}
path: |
dist/coq-bug-minimizer/coq-bug-minimizer*
dist/coq-import-inliner/coq-import-inliner*
dist/coq-require-minimizer/coq-require-minimizer*
- run: dist/coq-bug-minimizer/coq-bug-minimizer -h
- run: dist/coq-import-inliner/coq-import-inliner -h
- run: dist/coq-require-minimizer/coq-require-minimizer -h
standalone-check-all:
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- run: echo 'The triggering workflow passed'
if: ${{ needs.build.result == 'success' }}
- run: echo 'The triggering workflow failed' && false
if: ${{ needs.build.result != 'success' }}