only caching the SDL files
@@ -22,9 +22,10 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get install build-essential mercurial make cmake autoconf automake libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libdbus-1-dev libudev-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev fcitx-libs-dev libsamplerate0-dev libsndio-dev libwayland-dev libxkbcommon-dev
- name: Cache dependancies
+ if: ${{matrix.static == 1}}
uses: actions/cache@v2
with:
- path: ~/lib
+ path: ~/lib/SDL*
key: ${{ runner.os }}-${{ hashFiles('./scripts/vars.sh') }}
- run: sudo apt-get install libsdl2-dev
if: ${{matrix.static == 0}}
@@ -53,6 +54,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v2.0.0
- run: sudo xcode-select -switch /Applications/Xcode_12.app/Contents/Developer
+ - name: Cache dependancies
+ uses: actions/cache@v2
+ with:
+ path: ~/lib/SDL*
+ key: ${{ runner.os }}-${{ hashFiles('./scripts/vars.sh') }}
- run: ./scripts/setup_static_mac_sdl.sh
- run: make MIN_MAC_VERSION=10.12 STATIC=1
- uses: actions/upload-artifact@v2
