Skip to content

Commit

Permalink
pipeline debug
Browse files Browse the repository at this point in the history
  • Loading branch information
teqdruid committed May 18, 2024
1 parent 0862505 commit e3e8f22
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/pycdePublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
# Build CIRCT and run its tests using a Docker container with all the
# integration testing prerequisite installed.
build-circt-linux:
build-linux:
name: Build
# Run on an internal MSFT subscription. Please DO NOT use this for any other
# workflows without talking to John Demme ([email protected], GH
Expand All @@ -31,6 +31,10 @@ jobs:
matrix:
python-env:
- cp38-manylinux_x86_64
- cp39-manylinux_x86_64
- cp310-manylinux_x86_64
- cp311-manylinux_x86_64
- cp312-manylinux_x86_64
env:
SCCACHE_GHA_ENABLED: "true"
SCCACHE_CACHE_SIZE: 15GB
Expand Down Expand Up @@ -90,7 +94,7 @@ jobs:
if-no-files-found: error

# Build PyCDE, test it, and publish it to PyPI.
build-circt-windows:
build-windows:
name: Build
# Run on an internal MSFT subscription. Please DO NOT use this for any other
# workflows without talking to John Demme ([email protected], GH
Expand All @@ -109,6 +113,10 @@ jobs:
matrix:
python-env:
- cp38-win_amd64
- cp39-win_amd64
- cp310-win_amd64
- cp311-win_amd64
- cp312-win_amd64
env:
SCCACHE_GHA_ENABLED: "true"
steps:
Expand Down Expand Up @@ -171,3 +179,33 @@ jobs:
path: wheelhouse/${{ steps.whl-name.outputs.WHL }}
retention-days: 7
if-no-files-found: error

push_wheels:
name: Push wheels (Tag or Weekly)
runs-on: ubuntu-20.04
if: github.repository == 'llvm/circt'
# && (github.ref_type == 'tag' || github.event_name == 'schedule')
needs:
- build-linux
- build-windows
environment:
name: pypi
url: https://pypi.org/p/esiaccel
permissions:
id-token: write

steps:
- name: Download wheels
uses: actions/download-artifact@v3
with:
path: ./wheelhouse/

- name: List downloaded wheels
run: ls -laR
working-directory: ./wheelhouse/

- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/
verify-metadata: false
3 changes: 2 additions & 1 deletion frontends/PyCDE/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def run(self):
subprocess.check_call(["cmake", src_dir] + cmake_args, cwd=cmake_build_dir)
targets = ["check-pycde"]
if "RUN_TESTS" in os.environ and os.environ["RUN_TESTS"] != "false":
# The pycde integration tests test both PyCDE and the ESIRuntime so
# failure shouldn't gate publishing PyCDE.
targets.append("check-pycde-integration")
targets.append("check-circt")
subprocess.check_call([
Expand All @@ -110,7 +112,6 @@ def run(self):
"--target",
] + targets + build_args,
cwd=cmake_build_dir)

install_cmd = ["cmake", "--build", ".", "--target", "install-PyCDE"]
subprocess.check_call(install_cmd + build_args, cwd=cmake_build_dir)
shutil.copytree(os.path.join(cmake_install_dir, "python_packages"),
Expand Down

0 comments on commit e3e8f22

Please sign in to comment.