File tree 1 file changed +14
-2
lines changed 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,24 @@ jobs:
89
89
uses : egor-tensin/vs-shell@v2
90
90
with :
91
91
arch : x64
92
+ - name : Determine if build AWSSDK
93
+ shell : bash
94
+ run : |
95
+ # Disable AWSSDK on MacOS due to the minimum version
96
+ # of MACOSX_DEPLOYMENT_TARGET is 10.13
97
+ if [[ ${{ startsWith( matrix.os, 'macos' ) }} ]]; then
98
+ BUILD_S3=0
99
+ else
100
+ BUILD_S3=1
101
+ fi
102
+ echo "::set-output name=value::$BUILD_S3"
103
+ id : build_s3
92
104
- name : Install PyTorch and Build TorchData Wheel
93
105
shell : bash
94
106
env :
95
107
PYTHON_VERSION : ${{ matrix.python-version }}
96
108
PYTORCH_VERSION : ${{ inputs.pytorch_version }}
97
- BUILD_S3 : 1
109
+ BUILD_S3 : ${{ steps.build_s3.outputs.value }}
98
110
run : |
99
111
pip install cmake ninja
100
112
echo "/home/runner/.local/bin" >> $GITHUB_PATH
@@ -211,7 +223,7 @@ jobs:
211
223
- name : Determine if build AWSSDK
212
224
shell : bash
213
225
run : |
214
- if [[ ${{ startsWith( matrix.os, 'windows' ) }} ]]; then
226
+ if [[ ${{ startsWith( matrix.os, 'macos' ) || startsWith( matrix.os, ' windows' ) }} ]]; then
215
227
BUILD_S3=0
216
228
else
217
229
BUILD_S3=1
You can’t perform that action at this time.
0 commit comments