rightsize ccache, protect steam sdk from eviction

develop
Myk Taylor 2023-04-29 22:30:42 -07:00
parent 923f84b2f2
commit ffa9f79f94
No known key found for this signature in database
2 changed files with 12 additions and 4 deletions

@ -72,6 +72,12 @@ jobs:
# - name: Download DF # - name: Download DF
# run: | # run: |
# sh ci/download-df.sh # sh ci/download-df.sh
- name: Restore steam SDK
uses: actions/cache@v3
with:
path: depends/steam
key: steam-sdk-156
enableCrossOsArchive: true
- name: Configure DFHack - name: Configure DFHack
env: env:
CC: gcc-${{ matrix.gcc }} CC: gcc-${{ matrix.gcc }}
@ -94,6 +100,8 @@ jobs:
- name: Build DFHack - name: Build DFHack
run: | run: |
ninja -C build-ci install ninja -C build-ci install
ccache --max-size 100M
ccache --cleanup
ccache --show-stats ccache --show-stats
- name: Run cpp unit tests - name: Run cpp unit tests
id: run_tests_cpp id: run_tests_cpp

@ -14,8 +14,8 @@ on:
release_channel: release_channel:
description: Release channel description: Release channel
type: string type: string
required: false required: true
default: beta default: staging
jobs: jobs:
deploy-to-steam: deploy-to-steam:
@ -34,12 +34,12 @@ jobs:
path: build/win64-cross/ccache path: build/win64-cross/ccache
key: ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }} key: ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }}
restore-keys: | restore-keys: |
ccache-win64-cross-msvc-develop-${{ github.event.inputs.commit_hash }} ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }}
ccache-win64-cross-msvc ccache-win64-cross-msvc
- name: Restore steam SDK - name: Restore steam SDK
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: depends/steam/steamworks_sdk_156.zip path: depends/steam
key: steam-sdk-156 key: steam-sdk-156
enableCrossOsArchive: true enableCrossOsArchive: true
- name: Cross-compile win64 artifacts - name: Cross-compile win64 artifacts