Skip to content

Commit

Permalink
make build caches more specific to cut down on size
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Apr 13, 2024
1 parent c6e3c22 commit f88580c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
id: cache-wx
uses: actions/cache@v4
with:
path: wxlib
path: |
wxlib/lib
wxlib/include
key: wx-msvc-${{ env.WXHASH }}
- name: Build wxWidgets
if: steps.cache-wx.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -89,7 +91,9 @@ jobs:
id: cache-wx
uses: actions/cache@v4
with:
path: wxlib
path: |
wxlib/lib
wxlib/include
key: wx-msys2-${{ env.WXHASH }}
- name: Build wxWidgets
if: steps.cache-wx.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -154,14 +158,17 @@ jobs:
uses: actions/cache@v4
with:
path: |
wxlib
wxlib/make
wx/include
key: wx-ubuntu-${{ env.WXHASH }}
# Cache needs the source include because wx-config does not reference the cmake --install
# directories, only the source build, for some reason?
# directories, only the source build for some reason?
- name: Build wxWidgets
if: steps.cache-wx.outputs.cache-hit != 'true'
run: make wxlib
run: |
make wxlib
rm -rf wxlib/make/libs
# Remove libs folder to keep cache smaller. It's just temporary build data.
- name: Make
run: make cmd nsfplay
- name: Prepare Artifacts
Expand Down

0 comments on commit f88580c

Please sign in to comment.