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 777d4b5 commit 1ef3884
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pycdePublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ jobs:
RUN_TESTS: False
COMPILER_PREFIX: sccache
run: |
export PATH=$PATH:$HOME/.local/bin
echo "Building wheel"
cibuildwheel --output-dir wheelhouse frontends/PyCDE
python3 -m cibuildwheel --output-dir wheelhouse frontends/PyCDE
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
Expand Down
11 changes: 8 additions & 3 deletions frontends/PyCDE/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,14 @@ def run(self):
prefix = os.getenv("COMPILER_PREFIX", "")
if prefix != "":
prefix += " "
cc = "gcc"
if "CC" in os.environ:
cmake_args += [f"-DCMAKE_C_COMPILER=\"{prefix}{os.environ['CC']}\""]
cc = os.environ["CC"]
cmake_args += [f"-DCMAKE_C_COMPILER={prefix}{cc}"]
cxx = "g++"
if "CXX" in os.environ:
cmake_args += [f"-DCMAKE_CXX_COMPILER=\"{prefix}{os.environ['CXX']}\""]
cxx = os.environ["CXX"]
cmake_args += [f"-DCMAKE_CXX_COMPILER={prefix}{cxx}"]

if "CIRCT_EXTRA_CMAKE_ARGS" in os.environ:
cmake_args += os.environ["CIRCT_EXTRA_CMAKE_ARGS"].split(" ")
Expand All @@ -91,7 +95,8 @@ def run(self):
cmake_cache_file = os.path.join(cmake_build_dir, "CMakeCache.txt")
if os.path.exists(cmake_cache_file):
os.remove(cmake_cache_file)
print(f"Running cmake with args: {cmake_args}", file=sys.stderr)
subprocess.check_call(["echo", "cmake", src_dir] + cmake_args,
cwd=cmake_build_dir)
subprocess.check_call(["cmake", src_dir] + cmake_args, cwd=cmake_build_dir)
subprocess.check_call([
"cmake",
Expand Down

0 comments on commit 1ef3884

Please sign in to comment.