Skip to content

Commit 9d305b6

Browse files
committed
A better location for the sdk.
1 parent 5ed5de1 commit 9d305b6

5 files changed

Lines changed: 87 additions & 16 deletions

File tree

dev/tasks/r/github.macos.cran.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,19 @@ jobs:
6262
any::sys
6363
- name: Install MacOSX 11.3 SDK
6464
if: matrix.config == 'cran-release'
65+
env:
66+
SDK_TOKEN: {{ '${{ secrets.JONKEANE_MACOS_11_SDK_DOWNLOAD_TOKEN }}' }}
6567
run: |
66-
curl -fsSL https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz -o /tmp/MacOSX11.3.sdk.tar.xz
67-
sudo tar -xf /tmp/MacOSX11.3.sdk.tar.xz -C /Library/Developer/CommandLineTools/SDKs/
68-
echo "Installed MacOSX11.3.sdk to /Library/Developer/CommandLineTools/SDKs/"
68+
# Download, Confirm integrity, expand. This will fail if the hash does not match.
69+
curl -fsSL -H "Authorization: Bearer $SDK_TOKEN" \
70+
-H "Accept: application/vnd.github+json" \
71+
https://api.github.com/repos/jonkeane/crossbow_11_sdk/tarball/v0.0.1 \
72+
-o /tmp/MacOSX11.3.sdk.tar.gz
73+
echo "493570e56d6c6af26128e9096de738822589cc3cdb1b29aa5854f3f4c99756ac /tmp/MacOSX11.3.sdk.tar.gz" | shasum -a 256 -c -
74+
sudo tar -xzf /tmp/MacOSX11.3.sdk.tar.gz -C /Library/Developer/CommandLineTools/SDKs/
75+
# Rename the extracted folder (GitHub archives as {owner}-{repo}-{sha}/)
76+
sudo mv /Library/Developer/CommandLineTools/SDKs/jonkeane-crossbow_11_sdk-* \
77+
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk
6978
ls -la /Library/Developer/CommandLineTools/SDKs/
7079
- name: Install (cran-release)
7180
if: matrix.config == 'cran-release'

r/man/DictionaryType.Rd

Lines changed: 31 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/man/FixedWidthType.Rd

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/man/Message.Rd

Lines changed: 16 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/man/MessageReader.Rd

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)