Skip to content

Commit 603bce3

Browse files
committed
Disable AWSSDK for MacOS
1 parent 5e4414e commit 603bce3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/_build_test_upload.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,24 @@ jobs:
8989
uses: egor-tensin/vs-shell@v2
9090
with:
9191
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
92104
- name: Install PyTorch and Build TorchData Wheel
93105
shell: bash
94106
env:
95107
PYTHON_VERSION: ${{ matrix.python-version }}
96108
PYTORCH_VERSION: ${{ inputs.pytorch_version }}
97-
BUILD_S3: 1
109+
BUILD_S3: ${{ steps.build_s3.outputs.value }}
98110
run: |
99111
pip install cmake ninja
100112
echo "/home/runner/.local/bin" >> $GITHUB_PATH
@@ -211,7 +223,7 @@ jobs:
211223
- name: Determine if build AWSSDK
212224
shell: bash
213225
run: |
214-
if [[ ${{ startsWith( matrix.os, 'windows' ) }} ]]; then
226+
if [[ ${{ startsWith( matrix.os, 'macos' ) || startsWith( matrix.os, 'windows' ) }} ]]; then
215227
BUILD_S3=0
216228
else
217229
BUILD_S3=1

0 commit comments

Comments
 (0)