Skip to content

Commit

Permalink
pipeline debug
Browse files Browse the repository at this point in the history
  • Loading branch information
teqdruid committed May 17, 2024
1 parent e37ce8f commit 0966949
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pycdePublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ jobs:
python3 -m pip install cibuildwheel twine
choco install ninja sccache
- name: Build zlib
shell: pwsh
run: |
& "${VCPKG_INSTALLATION_ROOT}/vcpkg" install zlib:x64-windows-static
- name: Build wheel
env:
CIBW_BUILD: ${{ matrix.python-env }}
Expand Down
22 changes: 9 additions & 13 deletions frontends/PyCDE/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ def run(self):
cmake_args += [f"-DCMAKE_C_COMPILER={os.environ['CC']}"]
if "CXX" in os.environ:
cmake_args += [f"-DCMAKE_CXX_COMPILER={os.environ['CXX']}"]

if "CIRCT_EXTRA_CMAKE_ARGS" in os.environ:
cmake_args += os.environ["CIRCT_EXTRA_CMAKE_ARGS"].split(" ")
if "VCPKG_INSTALLATION_ROOT" in os.environ:
cmake_args += [
f"-DCMAKE_TOOLCHAIN_FILE={os.environ['VCPKG_INSTALLATION_ROOT']}/scripts/buildsystems/vcpkg.cmake"
]
build_args = []
build_parallelism = os.getenv("CMAKE_PARALLELISM")
if build_parallelism:
Expand All @@ -96,26 +99,19 @@ def run(self):
print(f"Running cmake with args: {cmake_args}", file=sys.stderr)
subprocess.check_call(["echo", "Running: cmake", src_dir] + cmake_args)
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":
targets.append("check-pycde-integration")
targets.append("check-circt")
subprocess.check_call([
"cmake",
"--build",
".",
"--verbose",
"--target",
"check-pycde",
] + build_args,
] + targets + build_args,
cwd=cmake_build_dir)

if "RUN_TESTS" in os.environ and os.environ["RUN_TESTS"] != "false":
subprocess.check_call([
"cmake",
"--build",
".",
"--target",
"check-pycde-integration",
"check-circt",
] + 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 0966949

Please sign in to comment.