3737
3838 - uses : ./.github/actions/micromamba
3939
40- # --- Mac SDK Hack ---
4140 - name : SDK install and symlink (Mac)
4241 if : contains(inputs.runner_generate, 'mac')
4342 run : |
@@ -63,19 +62,10 @@ jobs:
6362 run : |
6463 OUTPUT=`micromamba run -n cpp-py-bindgen python -c'import toml; print(toml.load("ocp.toml")["output_folder"])'`
6564 echo "OUTPUT=$OUTPUT" >> $GITHUB_OUTPUT
66-
67- - name : Restore OCP_src cache
68- id : cache-ocp-src-restore
69- uses : actions/cache/restore@v4
70- with :
71- path : ${{ steps.conf.outputs.OUTPUT }}
72- key : OCP-src-${{ inputs.platform }}-
73-
74- # --- Generation Logic ---
7565
7666 # Windows Special Case (Running on Linux targeting Windows)
7767 - name : Generate (Windows on Linux)
78- if : inputs.platform == 'Windows' && steps.cache-ocp-src-restore.outputs.cache-hit != 'true'
68+ if : inputs.platform == 'Windows'
7969 run : |
8070 micromamba create --yes --platform win-64 --no-deps --prefix ./occt occt=7.9.2
8171 micromamba run -n cpp-py-bindgen cmake -S . -B . -G Ninja \
9080
9181 # Standard Case (Linux/Mac)
9282 - name : Generate (Standard)
93- if : inputs.platform != 'Windows' && steps.cache-ocp-src-restore.outputs.cache-hit != 'true'
83+ if : inputs.platform != 'Windows'
9484 run : |
9585 micromamba run -n cpp-py-bindgen cmake -S . -B . -G Ninja \
9686 -DPython_ROOT_DIR=$CONDA_PREFIX \
@@ -100,30 +90,18 @@ jobs:
10090 cmake --build .
10191 ls -lRht
10292
103- - name : Cache OCP_src
104- id : cache-ocp-src-save
105- uses : actions/cache/save@v4
106- with :
107- path : ${{ steps.conf.outputs.OUTPUT }}
108- key : ${{ steps.cache-ocp-src-restore.outputs.cache-primary-key }}
109-
11093 - name : Copy pkl output
111- if : steps.cache-ocp-src-restore.outputs.cache-hit != 'true'
112- shell : bash -l {0}
11394 run : |
11495 mkdir -p ${{ steps.conf.outputs.OUTPUT }}_pkl
11596 cp *.pkl ${{ steps.conf.outputs.OUTPUT }}_pkl/
11697
117- # --- Artifact Upload ---
11898 - name : Upload Sources
119- # if: steps.cache-ocp-src-restore.outputs.cache-hit != 'true'
12099 uses : actions/upload-artifact@v4
121100 with :
122101 name : OCP_src_${{ inputs.platform }}
123102 path : ${{ steps.conf.outputs.OUTPUT }}
124103
125104 - name : Upload Pickles
126- if : steps.cache-ocp-src-restore.outputs.cache-hit != 'true'
127105 uses : actions/upload-artifact@v4
128106 with :
129107 name : OCP_pkl_${{ inputs.platform }}
@@ -154,14 +132,6 @@ jobs:
154132 with :
155133 submodules : true
156134
157- # rely on source artifact??
158- # - name: Restore OCP_src cache
159- # id: cache-ocp-src-restore
160- # uses: actions/cache/restore@v4
161- # with:
162- # path: ${{ steps.conf.outputs.OUTPUT }}
163- # key: OCP-src-${{ inputs.platform }}-
164-
165135 # --- Download Artifacts ---
166136 - name : Download Source Artifact
167137 uses : actions/download-artifact@v4
0 commit comments