33
33
linux-python2,
34
34
linux-python2-debug,
35
35
linux-python3,
36
+ windows-python3,
37
+ windows-python3-debug
36
38
]
37
39
38
40
include :
70
72
options : .github/workflows/main/options.windows
71
73
dependenciesURL : https://github.com/hypothetical-inc/gafferDependencies/releases/download/6.1.0/gafferDependencies-6.1.0-Python3-windows.zip
72
74
tests : testCore testCorePython testScene testImage testAlembic testUSD testVDB
73
- publish : false
75
+ publish : true
74
76
75
77
- name : windows-python3-debug
76
78
os : windows-2019
93
95
sdk : 10.0.17763.0
94
96
95
97
- 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
97
102
if : runner.os == 'Windows'
98
103
99
104
- name : Install toolchain (MacOS)
@@ -107,6 +112,8 @@ jobs:
107
112
# _before_ anything we specify with `-isystem`, despite documentation to the
108
113
# contrary. So we nuke the headers.
109
114
rm -rf /usr/local/include/*
115
+ echo PACKAGE_COMMAND=tar -czf >> $GITHUB_ENV
116
+ echo PACKAGE_EXTENSION=tar.gz >> $GITHUB_ENV
110
117
if : runner.os == 'macOS'
111
118
112
119
- name : Install toolchain (Linux)
@@ -121,6 +128,8 @@ jobs:
121
128
# in later steps.
122
129
echo $PATH > $GITHUB_PATH
123
130
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
124
133
shell : bash
125
134
if : runner.os == 'Linux'
126
135
@@ -152,7 +161,7 @@ jobs:
152
161
shell : bash
153
162
154
163
- name : Cache
155
- uses : actions/cache@v1
164
+ uses : actions/cache@v3
156
165
with :
157
166
path : sconsCache
158
167
key : ${{ runner.os }}-${{ matrix.containerImage }}-${{env.CORTEX_DEPENDENCIES_HASH}}-${{ matrix.buildType }}-${{ github.sha }}
@@ -175,19 +184,19 @@ jobs:
175
184
176
185
- name : Build Package
177
186
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 }}
179
188
if : matrix.publish
180
189
181
190
- uses : actions/upload-artifact@v2
182
191
with :
183
192
name : ${{ env.CORTEX_BUILD_NAME }}
184
- path : ${{ env.CORTEX_BUILD_NAME }}.tar.gz
193
+ path : ${{ env.CORTEX_BUILD_NAME }}.${{ env.PACKAGE_EXTENSION }}
185
194
if : matrix.publish
186
195
187
196
- name : Publish Release
188
197
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 != ''
191
200
192
201
env :
193
202
GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments