From f8e8fd40168c7d9092dd7939afc1229af440caa7 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Mon, 25 May 2026 13:43:21 -0500 Subject: [PATCH] game cache fingerprinting --- .github/workflows/website.yaml | 7 +++++++ scripts/download_fingerprint.sh | 5 +++-- scripts/fingerprint.txt | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 scripts/fingerprint.txt diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 80ac85a99..b9d4d1a6a 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -28,6 +28,7 @@ env: # steam STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} + FINGERPRINT: Manifest_UFSFiles_Win64.txt jobs: build: @@ -74,6 +75,12 @@ jobs: run: | ./scripts/download_fingerprint.sh + - uses: actions/cache@v5 + id: game-cache + with: + path: temp/game + key: ${{ runner.os }}-${{ hashFiles(format('temp/game/{0}', env.FINGERPRINT)) }} + - name: Build run: bun run build-website env: diff --git a/scripts/download_fingerprint.sh b/scripts/download_fingerprint.sh index eb148868c..df2d3a173 100755 --- a/scripts/download_fingerprint.sh +++ b/scripts/download_fingerprint.sh @@ -1,5 +1,5 @@ TEMP="temp" -FILES="scripts/fingerprint.txt" +FILES="temp/fingerprint.txt" DEPOT_DOWNLOADER="$TEMP/DepotDownloader" GAME="$TEMP/game" @@ -8,4 +8,5 @@ set -a source .env set +a -$DEPOT_DOWNLOADER -os windows -app 3341250 -filelist $FILES -username $STEAM_USERNAME -password $STEAM_PASSWORD -dir $GAME \ No newline at end of file +echo $FINGERPRINT > $FILES +$DEPOT_DOWNLOADER -os windows -app 3341250 -filelist $FILES -username $STEAM_USERNAME -password $STEAM_PASSWORD -dir $GAME diff --git a/scripts/fingerprint.txt b/scripts/fingerprint.txt deleted file mode 100644 index ed9ca5e01..000000000 --- a/scripts/fingerprint.txt +++ /dev/null @@ -1 +0,0 @@ -Manifest_UFSFiles_Win64.txt \ No newline at end of file