diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-28 11:29:41 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-28 11:29:41 +0000 |
commit | ce2f0bdac726a34627d5cf14362e7bf14f868d09 (patch) | |
tree | 0c32a224446a0c05957c74a86fc1b8fbd872702f /.github/workflows | |
parent | ad3cb2125dee4379c11f447216f510d6544c10c5 (diff) | |
parent | ac0b0794927725bb78a8fa1fef70fb9f661b416a (diff) |
Merge #7471
7471: Force XCode version r=lnicola a=lnicola
Pin an Xcode version in the release workflow to avoid:
```
Run SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path) MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version) cargo xtask dist
xcodebuild: error: SDK "macosx11.0" cannot be located.
xcodebuild: error: SDK "macosx11.0" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx11.0'
xcodebuild: error: SDK "macosx11.0" cannot be located.
xcodebuild: error: SDK "macosx11.0" cannot be located.
xcrun: error: unable to lookup item 'PlatformVersion' in SDK 'macosx11.0'
```
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 94b6aa7c4..82448f719 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml | |||
@@ -157,8 +157,12 @@ jobs: | |||
157 | runs-on: macos-latest | 157 | runs-on: macos-latest |
158 | env: | 158 | env: |
159 | RA_TARGET: x86_64-apple-darwin | 159 | RA_TARGET: x86_64-apple-darwin |
160 | SELECT_XCODE: /Applications/Xcode_12.2.app | ||
160 | 161 | ||
161 | steps: | 162 | steps: |
163 | - name: Select XCode version | ||
164 | run: sudo xcode-select -s "${SELECT_XCODE}" | ||
165 | |||
162 | - name: Checkout repository | 166 | - name: Checkout repository |
163 | uses: actions/checkout@v2 | 167 | uses: actions/checkout@v2 |
164 | 168 | ||
@@ -183,8 +187,12 @@ jobs: | |||
183 | runs-on: macos-latest | 187 | runs-on: macos-latest |
184 | env: | 188 | env: |
185 | RA_TARGET: aarch64-apple-darwin | 189 | RA_TARGET: aarch64-apple-darwin |
190 | SELECT_XCODE: /Applications/Xcode_12.2.app | ||
186 | 191 | ||
187 | steps: | 192 | steps: |
193 | - name: Select XCode version | ||
194 | run: sudo xcode-select -s "${SELECT_XCODE}" | ||
195 | |||
188 | - name: Checkout repository | 196 | - name: Checkout repository |
189 | uses: actions/checkout@v2 | 197 | uses: actions/checkout@v2 |
190 | 198 | ||