mirror of https://github.com/llvm/circt.git
[ESI][Runtime] Wheel build workflow
Pushing draft workflow to create it in the actions UI.
This commit is contained in:
parent
ef0f434b7c
commit
872a1f36f7
|
@ -0,0 +1,51 @@
|
|||
name: Publish ESI Runtime
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_wheels:
|
||||
name: Build wheels with ${{ matrix.config.cibw_build }}
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
if: github.repository == 'llvm/circt'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- os: ubuntu-20.04
|
||||
cibw_build: cp38-manylinux_x86_64
|
||||
- os: ubuntu-20.04
|
||||
cibw_build: cp310-manylinux_x86_64
|
||||
|
||||
steps:
|
||||
- name: Get CIRCT
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
submodules: "true"
|
||||
|
||||
- name: Unshallow CIRCT
|
||||
run: |
|
||||
git fetch --force --unshallow --tags --no-recurse-submodules
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v3
|
||||
|
||||
- name: Install cibuildwheel
|
||||
run: python -m pip install cibuildwheel==2.16.2
|
||||
|
||||
- name: Build wheels
|
||||
run: python -m cibuildwheel --output-dir wheelhouse ./lib/Dialect/ESI/runtime
|
||||
env:
|
||||
CIBW_BUILD: ${{ matrix.config.cibw_build }}
|
||||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
|
||||
CIBW_BUILD_FRONTEND: build
|
||||
SETUPTOOLS_SCM_DEBUG: True
|
||||
|
||||
- name: Upload (stage) wheels as artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: python-wheels
|
||||
path: ./wheelhouse/*.whl
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
Loading…
Reference in New Issue