ref: 954a88bd0621283d98f7db9a78463176a691c81e
parent: b91d65a04c0547f0a2613415684b2dd3a0821b89
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Tue Aug 27 05:16:07 EDT 2024
Try to add SDL2 cache to intel build
--- a/.github/workflows/build-macos-intel.yml
+++ b/.github/workflows/build-macos-intel.yml
@@ -38,12 +38,21 @@
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
+
+ - name: 'Cache SDL2 files'
+ id: cache-x86_64-sdl2-files
+ uses: actions/cache@v4
+ with:
+ path: 'SDL2-2.30.4'
+ key: mac-x86_64-sdl2-files
- name: 'Download SDL2 sources'
+ if: steps.cache-x86_64-sdl2-files.outputs.cache-hit != 'true'
run: |
(curl https://www.libsdl.org/release/SDL2-$SDL_VERSION.tar.gz || curl -L https://github.com/libsdl-org/SDL/releases/download/release-$SDL_VERSION/SDL2-$SDL_VERSION.tar.gz) | tar xvf -
- name: 'Build SDL2'
+ if: steps.cache-x86_64-sdl2-files.outputs.cache-hit != 'true'
run: |
export MACOSX_DEPLOYMENT_TARGET="10.9" && cd SDL2-$SDL_VERSION && mkdir build_x86_64 && cd build_x86_64 && ../configure CPPFLAGS="-mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -isysroot $HOME/x86_64/SDKs/MacOSX10.9.sdk" --prefix="$HOME/x86_64prefix" && make && make install
@@ -71,4 +80,4 @@
with:
name: m8c-${{ env.NOW }}-macos-intelpath: |
- m8c-${{ env.NOW }}-macos-intel.dmg\ No newline at end of file
+ m8c-${{ env.NOW }}-macos-intel.dmg--
⑨