Skip to content

Commit bb1fa8a

Browse files
committed
ci: use macos12, get dep.7z
1 parent 9d70ded commit bb1fa8a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
jobs:
2020
macOS:
2121
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
22-
runs-on: macos-11
22+
runs-on: macos-12
2323
env:
2424
TARGET_OS: 'macOS'
2525
TARGET_ARCH: ${{ matrix.arch }}
@@ -97,7 +97,7 @@ jobs:
9797
9898
9999
macCatalyst:
100-
runs-on: macos-11
100+
runs-on: macos-12
101101
env:
102102
TARGET_OS: 'macCatalyst'
103103
strategy:
@@ -162,7 +162,7 @@ jobs:
162162
163163
164164
iOS:
165-
runs-on: macos-11
165+
runs-on: macos-12
166166
env:
167167
TARGET_OS: iOS
168168
strategy:
@@ -228,7 +228,7 @@ jobs:
228228
run: sshpass -p ${SF_PW} scp -o StrictHostKeyChecking=no mdk-sdk-${TARGET_OS}.tar.xz ${SF_USER}@frs.sourceforge.net:/home/frs/project/mdk-sdk/nightly/
229229

230230
iOSSimulator:
231-
runs-on: macos-latest
231+
runs-on: macos-12
232232
env:
233233
TARGET_OS: iOSSimulator
234234
strategy:
@@ -290,7 +290,7 @@ jobs:
290290
path: mdk-sdk-${{ env.TARGET_OS }}.tar.xz
291291

292292
Apple:
293-
runs-on: macos-latest
293+
runs-on: macos-12
294294
needs: [macOS, iOS, iOSSimulator, macCatalyst]
295295
steps:
296296
- uses: actions/checkout@v2

ci-before-build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ if [[ "$EXTERNAL_DEP_CACHE_HIT" != "true" ]]; then
7777
mkdir -p external/lib/sunxi/armv7
7878
cp -af ${FFPKG}/lib/* external/lib/sunxi/armv7 #single arch package
7979
elif [ "$TARGET_OS" == "windows-desktop" ]; then
80-
curl -kL -o glfw3.7z https://sourceforge.net/projects/mdk-sdk/files/deps/glfw3.7z/download
81-
7z x glfw3.7z
82-
cp -af glfw3/include/GLFW external/include/
83-
cp -af glfw3/lib/* external/lib/windows/
8480
# TODO: download in cmake(if check_include_files failed)
8581
curl -kL -o vk.zip https://github.com/KhronosGroup/Vulkan-Headers/archive/master.zip
8682
7z x vk.zip
@@ -96,6 +92,11 @@ if [[ "$EXTERNAL_DEP_CACHE_HIT" != "true" ]]; then
9692
curl -kL -o external/include/${h} https://www.khronos.org/registry/EGL/api/${h}
9793
done
9894
fi
95+
if [[ "$TARGET_OS" == "win"* || "$TARGET_OS" == "uwp"* || "$TARGET_OS" == macOS || "$TARGET_OS" == "linux" ]]; then
96+
curl -kL -o dep.7z https://sourceforge.net/projects/mdk-sdk/files/deps/dep.7z/download
97+
7z x dep.7z
98+
cp -af dep/* external/
99+
fi
99100
fi
100101

101102
if [[ "$SYSROOT_CACHE_HIT" != "true" ]]; then

0 commit comments

Comments
 (0)