Attemping to read and write steam cache
This commit is contained in:
@ -116,9 +116,24 @@ jobs:
|
||||
name: linux
|
||||
path: build/bin/linux
|
||||
|
||||
# Restore Steam cache
|
||||
- name: Restore Steam Cache
|
||||
uses: https://gitea.com/actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
./steam_cache/
|
||||
./steam_build_output/
|
||||
key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
|
||||
restore-keys: |
|
||||
steam-cache-${{ runner.os }}-
|
||||
steam-cache-
|
||||
|
||||
# Read Cache
|
||||
- name: Read Cache
|
||||
run: |
|
||||
echo "TODO Read Cache"
|
||||
mkdir -p ./steam_cache
|
||||
cp ./steam_cache/config.vdf /home/steam/Steam/config/ 2>/dev/null || echo "No cached config file"
|
||||
cp ./steam_cache/ssfn* /home/steam/Steam/ 2>/dev/null || echo "No cached sentry file"
|
||||
|
||||
- name: Update VDF
|
||||
run: |
|
||||
@ -131,6 +146,9 @@ jobs:
|
||||
cd $PROJECT_PATH
|
||||
/home/steam/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build/build_dependencies/steam/app_build_2739610.vdf" +quit
|
||||
|
||||
# Write cache
|
||||
- name: Cache Config and sentry
|
||||
run: |
|
||||
echo "TODO Cache Config and sentry"
|
||||
mkdir -p ./steam_cache
|
||||
cp /home/steam/Steam/config/config.vdf ./steam_cache/ 2>/dev/null || echo "No config file to cache"
|
||||
cp /home/steam/Steam/ssfn* ./steam_cache/ 2>/dev/null || echo "No sentry files to cache"
|
||||
Reference in New Issue
Block a user