3333 linux-python2,
3434 linux-python2-debug,
3535 linux-python3,
36+ windows-python3,
37+ windows-python3-debug
3638 ]
3739
3840 include :
7072 options : .github/workflows/main/options.windows
7173 dependenciesURL : https://github.com/hypothetical-inc/gafferDependencies/releases/download/6.1.0/gafferDependencies-6.1.0-Python3-windows.zip
7274 tests : testCore testCorePython testScene testImage testAlembic testUSD testVDB
73- publish : false
75+ publish : true
7476
7577 - name : windows-python3-debug
7678 os : windows-2019
9395 sdk : 10.0.17763.0
9496
9597 - name : Install toolchain (Windows)
96- run : python -m pip install scons
98+ run : |
99+ python -m pip install scons
100+ echo "PACKAGE_COMMAND=7z a -tzip" >> $env:GITHUB_ENV
101+ echo "PACKAGE_EXTENSION=zip" >> $env:GITHUB_ENV
97102 if : runner.os == 'Windows'
98103
99104 - name : Install toolchain (MacOS)
@@ -107,6 +112,8 @@ jobs:
107112 # _before_ anything we specify with `-isystem`, despite documentation to the
108113 # contrary. So we nuke the headers.
109114 rm -rf /usr/local/include/*
115+ echo PACKAGE_COMMAND=tar -czf >> $GITHUB_ENV
116+ echo PACKAGE_EXTENSION=tar.gz >> $GITHUB_ENV
110117 if : runner.os == 'macOS'
111118
112119 - name : Install toolchain (Linux)
@@ -121,6 +128,8 @@ jobs:
121128 # in later steps.
122129 echo $PATH > $GITHUB_PATH
123130 echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH >> $GITHUB_ENV
131+ echo PACKAGE_COMMAND=tar -czf >> $GITHUB_ENV
132+ echo PACKAGE_EXTENSION=tar.gz >> $GITHUB_ENV
124133 shell : bash
125134 if : runner.os == 'Linux'
126135
@@ -152,7 +161,7 @@ jobs:
152161 shell : bash
153162
154163 - name : Cache
155- uses : actions/cache@v1
164+ uses : actions/cache@v3
156165 with :
157166 path : sconsCache
158167 key : ${{ runner.os }}-${{ matrix.containerImage }}-${{env.CORTEX_DEPENDENCIES_HASH}}-${{ matrix.buildType }}-${{ github.sha }}
@@ -175,19 +184,19 @@ jobs:
175184
176185 - name : Build Package
177186 run : |
178- tar -czf ${{ env.CORTEX_BUILD_NAME }}.tar.gz ${{ env.CORTEX_BUILD_NAME }}
187+ ${{ env.PACKAGE_COMMAND }} ${{ env.CORTEX_BUILD_NAME }}.${{env.PACKAGE_EXTENSION}} ${{ env.CORTEX_BUILD_NAME }}
179188 if : matrix.publish
180189
181190 - uses : actions/upload-artifact@v2
182191 with :
183192 name : ${{ env.CORTEX_BUILD_NAME }}
184- path : ${{ env.CORTEX_BUILD_NAME }}.tar.gz
193+ path : ${{ env.CORTEX_BUILD_NAME }}.${{ env.PACKAGE_EXTENSION }}
185194 if : matrix.publish
186195
187196 - name : Publish Release
188197 run : |
189- ./.github/workflows/main/publishRelease.py --archive ${{ env.CORTEX_BUILD_NAME }}.tar.gz --repo ${{ github.repository }} --releaseId ${{ env.CORTEX_GITHUB_RELEASEID }}
190- if : matrix.publish && env.CORTEX_GITHUB_RELEASEID != '' && runner.os != 'Windows'
198+ python ./.github/workflows/main/publishRelease.py --archive ${{ env.CORTEX_BUILD_NAME }}.${{ env.PACKAGE_EXTENSION }} --repo ${{ github.repository }} --releaseId ${{ env.CORTEX_GITHUB_RELEASEID }}
199+ if : matrix.publish && env.CORTEX_GITHUB_RELEASEID != ''
191200
192201 env :
193202 GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments