Skip to content

PyCDE Test and Publish #8

PyCDE Test and Publish

PyCDE Test and Publish #8

Workflow file for this run

name: PyCDE Test and Publish
# Build the wheels for a series of Python versions and OSes and publish them to
# PyPI.
on:
workflow_dispatch:
jobs:
# Build CIRCT and run its tests using a Docker container with all the
# integration testing prerequisite installed.
build-circt:
name: Build
# Run on an internal MSFT subscription. Please DO NOT use this for any other
# workflows without talking to John Demme (john.demme@microsoft.com, GH
# teqdruid) first. We may lose funding for this if it ends up costing too
# much.
# If individual jobs fail due to timeouts or disconnects, please report to
# John and re-run the job.
runs-on: ["self-hosted", "1ES.Pool=1ES-CIRCT-builds", "linux"]
# runs-on: ubuntu-latest
strategy:
# Keep the 'matrix' strategy with one data point to make it obvious that
# this is one point in the overall matrix.
matrix:
python-env:
- cp38-manylinux_x86_64
env:
SCCACHE_GHA_ENABLED: "true"
steps:
- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.3
# Clone the CIRCT repo and its submodules. Do shallow clone to save clone
# time.
- name: Get CIRCT
uses: actions/checkout@v4
with:
submodules: true
- name: Unshallow CIRCT
run: |
echo "Fetching history and tags from CIRCT repo"
git fetch --depth=1000000 --tags --no-recurse-submodules
# --------
# Build and test CIRCT
# --------
- name: Install dependencies
run: |
set -o errexit
python3 -m pip install --upgrade pip
python3 -m pip install cibuildwheel twine
- name: Build wheel
env:
CIBW_BUILD: ${{ matrix.python-env }}
CIBW_ENVIRONMENT: >
CMAKE_GENERATOR=Ninja
SETUPTOOLS_SCM_DEBUG=True
BUILD_TYPE=Release
RUN_TESTS=True
run: |
set -o errexit
export PATH=$PATH:$HOME/.local/bin
echo "Building wheel"
cibuildwheel --output-dir wheelhouse frontends/PyCDE
- name: Upload Binary (Non-Tag)
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
retention-days: 7