Skip to content

Commit 3ae8974

Browse files
committed
release-dry-run: Set MACOSX_DEPLOYMENT_TARGET
1 parent 2fb44b5 commit 3ae8974

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release-dry-run.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ jobs:
119119
if: contains(matrix.target, '-windows-msvc')
120120
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static -C link-self-contained=yes" >>"${GITHUB_ENV}"
121121
if: contains(matrix.target, '-linux-musl')
122+
# https://doc.rust-lang.org/rustc/platform-support.html
123+
- run: echo "MACOSX_DEPLOYMENT_TARGET=10.12" >>"${GITHUB_ENV}"
124+
if: matrix.target == 'x86_64-apple-darwin'
125+
- run: echo "MACOSX_DEPLOYMENT_TARGET=11.0" >>"${GITHUB_ENV}"
126+
if: matrix.target == 'aarch64-apple-darwin' || matrix.target == 'universal-apple-darwin'
122127
- uses: taiki-e/upload-rust-binary-action@v1
123128
with:
124129
dry-run: true

0 commit comments

Comments
 (0)