Skip to content

Commit feab610

Browse files
committed
pipeline debug
1 parent 0966949 commit feab610

File tree

1 file changed

+72
-67
lines changed

1 file changed

+72
-67
lines changed

.github/workflows/pycdePublish.yml

Lines changed: 72 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -4,73 +4,76 @@ name: PyCDE Test and Publish
44
# PyPI.
55

66
on:
7+
push:
8+
tags:
9+
- pycde-*
710
workflow_dispatch:
811

912
jobs:
1013
# Build CIRCT and run its tests using a Docker container with all the
1114
# integration testing prerequisite installed.
12-
build-circt-linux:
13-
name: Build
14-
# Run on an internal MSFT subscription. Please DO NOT use this for any other
15-
# workflows without talking to John Demme (john.demme@microsoft.com, GH
16-
# teqdruid) first. We may lose funding for this if it ends up costing too
17-
# much.
18-
# If individual jobs fail due to timeouts or disconnects, please report to
19-
# John and re-run the job.
20-
runs-on: ["self-hosted", "1ES.Pool=1ES-CIRCT-builds", "linux"]
21-
# runs-on: ubuntu-latest
22-
strategy:
23-
# Keep the 'matrix' strategy with one data point to make it obvious that
24-
# this is one point in the overall matrix.
25-
matrix:
26-
python-env:
27-
- cp38-manylinux_x86_64
28-
env:
29-
SCCACHE_GHA_ENABLED: "true"
30-
steps:
31-
- name: Set up sccache
32-
uses: mozilla-actions/sccache-action@v0.0.3
15+
# build-circt-linux:
16+
# name: Build
17+
# # Run on an internal MSFT subscription. Please DO NOT use this for any other
18+
# # workflows without talking to John Demme (john.demme@microsoft.com, GH
19+
# # teqdruid) first. We may lose funding for this if it ends up costing too
20+
# # much.
21+
# # If individual jobs fail due to timeouts or disconnects, please report to
22+
# # John and re-run the job.
23+
# runs-on: ["self-hosted", "1ES.Pool=1ES-CIRCT-builds", "linux"]
24+
# # runs-on: ubuntu-latest
25+
# strategy:
26+
# # Keep the 'matrix' strategy with one data point to make it obvious that
27+
# # this is one point in the overall matrix.
28+
# matrix:
29+
# python-env:
30+
# - cp38-manylinux_x86_64
31+
# env:
32+
# SCCACHE_GHA_ENABLED: "true"
33+
# steps:
34+
# - name: Set up sccache
35+
# uses: mozilla-actions/sccache-action@v0.0.3
3336

34-
# Clone the CIRCT repo and its submodules. Do shallow clone to save clone
35-
# time.
36-
- name: Get CIRCT
37-
uses: actions/checkout@v4
38-
with:
39-
fetch-depth: 0
40-
fetch-tags: true
41-
submodules: false
37+
# # Clone the CIRCT repo and its submodules. Do shallow clone to save clone
38+
# # time.
39+
# - name: Get CIRCT
40+
# uses: actions/checkout@v4
41+
# with:
42+
# fetch-depth: 0
43+
# fetch-tags: true
44+
# submodules: false
4245

43-
- name: Get shallow LLVM submodule
44-
run: |
45-
git submodule update --init --recursive --recommend-shallow --depth 1
46+
# - name: Get shallow LLVM submodule
47+
# run: |
48+
# git submodule update --init --recursive --recommend-shallow --depth 1
4649

47-
# --------
48-
# Build and test CIRCT
49-
# --------
50-
- name: Install dependencies
51-
run: |
52-
set -o errexit
53-
python3 -m pip install --upgrade pip
54-
python3 -m pip install cibuildwheel twine
55-
- name: Build wheel
56-
env:
57-
CIBW_BUILD: ${{ matrix.python-env }}
58-
CMAKE_GENERATOR: Ninja
59-
SETUPTOOLS_SCM_DEBUG: True
60-
BUILD_TYPE: Release
61-
RUN_TESTS: True
62-
COMPILER_LAUNCHER: sccache
63-
run: |
64-
set -o errexit
65-
export PATH=$PATH:$HOME/.local/bin
50+
# # --------
51+
# # Build and test CIRCT
52+
# # --------
53+
# - name: Install dependencies
54+
# run: |
55+
# set -o errexit
56+
# python3 -m pip install --upgrade pip
57+
# python3 -m pip install cibuildwheel twine
58+
# - name: Build wheel
59+
# env:
60+
# CIBW_BUILD: ${{ matrix.python-env }}
61+
# CMAKE_GENERATOR: Ninja
62+
# SETUPTOOLS_SCM_DEBUG: True
63+
# BUILD_TYPE: Release
64+
# RUN_TESTS: True
65+
# COMPILER_LAUNCHER: sccache
66+
# run: |
67+
# set -o errexit
68+
# export PATH=$PATH:$HOME/.local/bin
6669

67-
echo "Building wheel"
68-
cibuildwheel --output-dir wheelhouse frontends/PyCDE
69-
- name: Upload Binary
70-
uses: actions/upload-artifact@v4
71-
with:
72-
path: wheelhouse/*.whl
73-
retention-days: 7
70+
# echo "Building wheel"
71+
# cibuildwheel --output-dir wheelhouse frontends/PyCDE
72+
# - name: Upload Binary
73+
# uses: actions/upload-artifact@v4
74+
# with:
75+
# path: wheelhouse/*.whl
76+
# retention-days: 7
7477

7578
# Build PyCDE, test it, and publish it to PyPI.
7679
build-circt-windows:
@@ -81,11 +84,11 @@ jobs:
8184
# much.
8285
# If individual jobs fail due to timeouts or disconnects, please report to
8386
# John and re-run the job.
84-
runs-on:
85-
- self-hosted
86-
- 1ES.Pool=1ES-CIRCT-builds
87-
- 1ES.ImageOverride=1esMMSWindows2022
88-
# runs-on: ubuntu-latest
87+
# runs-on:
88+
# - self-hosted
89+
# - 1ES.Pool=1ES-CIRCT-builds
90+
# - 1ES.ImageOverride=1esMMSWindows2022
91+
runs-on: windows-latest
8992
strategy:
9093
# Keep the 'matrix' strategy with one data point to make it obvious that
9194
# this is one point in the overall matrix.
@@ -98,6 +101,11 @@ jobs:
98101
- name: Set up sccache
99102
uses: mozilla-actions/sccache-action@v0.0.3
100103

104+
- name: Build zlib
105+
shell: pwsh
106+
run: |
107+
& "${VCPKG_INSTALLATION_ROOT}/vcpkg" install zlib:x64-windows-static
108+
101109
# Clone the CIRCT repo and its submodules. Do shallow clone to save clone
102110
# time.
103111
- name: Get CIRCT
@@ -120,10 +128,7 @@ jobs:
120128
python3 -m pip install cibuildwheel twine
121129
122130
choco install ninja sccache
123-
- name: Build zlib
124-
shell: pwsh
125-
run: |
126-
& "${VCPKG_INSTALLATION_ROOT}/vcpkg" install zlib:x64-windows-static
131+
127132
- name: Build wheel
128133
env:
129134
CIBW_BUILD: ${{ matrix.python-env }}

0 commit comments

Comments
 (0)