mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 01:09:21 +00:00
GitHub CI: cache SDKs [Mac]
GitHub or MacStadium (Mac platform provider) may be rate-limiting downloading the SDKs so we'd like to speed it up.
This commit is contained in:
22
.github/scripts/macOS/prepare.sh
vendored
22
.github/scripts/macOS/prepare.sh
vendored
@@ -26,15 +26,13 @@ mkdir $TEMP_INST
|
||||
cd $TEMP_INST
|
||||
|
||||
# Install XIMEA
|
||||
if [ -n "$sdk_pass" ]; then
|
||||
curl -S --netrc-file <(cat <<<"machine frakira.fi.muni.cz login sdk password $sdk_pass") https://frakira.fi.muni.cz/~xpulec/sdks/m3api.tar.xz -O
|
||||
sudo tar xJf m3api.tar.xz -C $(xcrun --show-sdk-path)/System/Library/Frameworks
|
||||
if [ -f /var/tmp/sdks/m3api.tar.xz ]; then
|
||||
sudo tar xJf /var/tmp/sdks/m3api.tar.xz -C $(xcrun --show-sdk-path)/System/Library/Frameworks
|
||||
fi
|
||||
|
||||
# Install AJA
|
||||
if [ -n "$sdk_pass" ]; then
|
||||
curl -S --netrc-file <(cat <<<"machine frakira.fi.muni.cz login sdk password $sdk_pass") https://frakira.fi.muni.cz/~xpulec/sdks/ntv2sdkmac.zip -O
|
||||
unzip ntv2sdkmac.zip -d /tmp
|
||||
if [ -f /var/tmp/sdks/ntv2sdkmac.zip ]; then
|
||||
unzip /var/tmp/sdks/ntv2sdkmac.zip -d /tmp
|
||||
mv /tmp/ntv2sdk* $AJA_INST
|
||||
cd $AJA_INST/ajalibraries/ajantv2/build
|
||||
xcodebuild -project ajantv2.xcodeproj
|
||||
@@ -45,17 +43,13 @@ if [ -n "$sdk_pass" ]; then
|
||||
fi
|
||||
|
||||
# DELTACAST
|
||||
if [ -n "$sdk_pass" ]; then
|
||||
curl -S --user sdk:$sdk_pass https://frakira.fi.muni.cz/~xpulec/sdks/VideoMasterHD_mac.tar.xz -O
|
||||
sudo tar xJf VideoMasterHD_mac.tar.xz -C $(xcrun --show-sdk-path)/System/Library/Frameworks
|
||||
rm VideoMasterHD_mac.tar.xz
|
||||
if [ -f /var/tmp/sdks/VideoMasterHD_mac.tar.xz ]; then
|
||||
sudo tar xJf /var/tmp/sdks/VideoMasterHD_mac.tar.xz -C $(xcrun --show-sdk-path)/System/Library/Frameworks
|
||||
fi
|
||||
|
||||
# Install NDI
|
||||
if [ -n "$sdk_pass" -a "$GITHUB_REF" = refs/heads/ndi-build ]; then
|
||||
curl -S --netrc-file <(cat <<<"machine frakira.fi.muni.cz login sdk password $sdk_pass") https://frakira.fi.muni.cz/~xpulec/sdks/NDISDK_Apple.pkg -O
|
||||
sudo installer -pkg NDISDK_Apple.pkg -target /
|
||||
rm NDISDK_Apple.pkg
|
||||
if [ -f /var/tmp/sdks/NDISDK_Apple.pkg ]; then
|
||||
sudo installer -pkg /var/tmp/sdks/NDISDK_Apple.pkg -target /
|
||||
sudo mv "/Library/NDI SDK for Apple/" /Library/NDI
|
||||
cd /Library/NDI/lib/x64
|
||||
sudo ln -s libndi.?.dylib libndi.dylib
|
||||
|
||||
11
.github/workflows/ccpp.yml
vendored
11
.github/workflows/ccpp.yml
vendored
@@ -122,6 +122,17 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: Cache SDKs
|
||||
id: cache-macos-sdks
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: '/var/tmp/sdks'
|
||||
key: cache-macos-sdks
|
||||
- name: Download SDKs
|
||||
if: steps.cache-macos-sdk.outputs.cache-hit != 'true' && env.sdk_pass != null
|
||||
run: |
|
||||
mkdir /var/tmp/sdks && cd /var/tmp/sdks
|
||||
curl -S --user sdk:$sdk_pass -O https://frakira.fi.muni.cz/~xpulec/sdks/m3api.tar.xz -O https://frakira.fi.muni.cz/~xpulec/sdks/ntv2sdkmac.zip -O https://frakira.fi.muni.cz/~xpulec/sdks/VideoMasterHD_mac.tar.xz -O https://frakira.fi.muni.cz/~xpulec/sdks/NDISDK_Apple.pkg
|
||||
- name: bootstrap
|
||||
run: |
|
||||
. .github/scripts/environment.sh
|
||||
|
||||
Reference in New Issue
Block a user