@@ -4,73 +4,76 @@ name: PyCDE Test and Publish
4
4
# PyPI.
5
5
6
6
on :
7
+ push :
8
+ tags :
9
+ - pycde-*
7
10
workflow_dispatch :
8
11
9
12
jobs :
10
13
# Build CIRCT and run its tests using a Docker container with all the
11
14
# 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
33
36
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
42
45
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
46
49
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
66
69
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
74
77
75
78
# Build PyCDE, test it, and publish it to PyPI.
76
79
build-circt-windows :
@@ -81,11 +84,11 @@ jobs:
81
84
# much.
82
85
# If individual jobs fail due to timeouts or disconnects, please report to
83
86
# 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
89
92
strategy :
90
93
# Keep the 'matrix' strategy with one data point to make it obvious that
91
94
# this is one point in the overall matrix.
@@ -98,6 +101,11 @@ jobs:
98
101
- name : Set up sccache
99
102
uses : mozilla-actions/sccache-action@v0.0.3
100
103
104
+ - name : Build zlib
105
+ shell : pwsh
106
+ run : |
107
+ & "${VCPKG_INSTALLATION_ROOT}/vcpkg" install zlib:x64-windows-static
108
+
101
109
# Clone the CIRCT repo and its submodules. Do shallow clone to save clone
102
110
# time.
103
111
- name : Get CIRCT
@@ -120,10 +128,7 @@ jobs:
120
128
python3 -m pip install cibuildwheel twine
121
129
122
130
choco install ninja sccache
123
- - name : Build zlib
124
- shell : pwsh
125
- run : |
126
- & "${VCPKG_INSTALLATION_ROOT}/vcpkg" install zlib:x64-windows-static
131
+
127
132
- name : Build wheel
128
133
env :
129
134
CIBW_BUILD : ${{ matrix.python-env }}
0 commit comments