Skip to content

Commit

Permalink
Slim cache size by removing buildtrees/downloads (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
zig-for authored Nov 22, 2022
1 parent e55b56d commit ec81acb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
submodules: true
# TODO: figure out how to disable wxGL so we can get rid of freeglut
- run: sudo apt-get install pkg-config libgtk-3-dev libsecret-1-dev libgcrypt20-dev libsystemd-dev freeglut3-dev
- run: sudo apt-get update && sudo apt-get install pkg-config libgtk-3-dev libsecret-1-dev libgcrypt20-dev libsystemd-dev freeglut3-dev
if: ${{ contains(matrix.config.os, 'ubuntu') }}
- run: mkdir ${{ matrix.config.vcpkg-dir }}
# Install latest CMake.
Expand Down Expand Up @@ -62,14 +62,19 @@ jobs:
# This is the name of the CMakePresets.json's configuration to use to generate
# the project files. This configuration leverages the vcpkg.cmake toolchain file to
# run vcpkg and install all dependencies specified in vcpkg.json.

# TODO: this probably won't work on linux, lol'


configurePreset: '${{ matrix.config.preset }}'

# This is the name of the CMakePresets.json's configuration to build the project.
buildPreset: '${{ matrix.config.preset }}'
- run: ls out/build
- name: Remove buildtrees from cache
uses: JesseTG/[email protected]
with:
path: ${{ matrix.config.vcpkg-dir }}/buildtrees
- name: Remove downloads from cache
uses: JesseTG/[email protected]
with:
path: ${{ matrix.config.vcpkg-dir }}/downloads
- name: Archive build
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ec81acb

Please sign in to comment.