Skip to content

Commit

Permalink
ensure the cache key is unique to the sha
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 8, 2023
1 parent efdc18d commit c3326d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/steam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to Steam
on:
workflow_dispatch:
inputs:
commit_hash:
ref:
description: Branch or commit hash
type: string
required: true
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
with:
submodules: true
fetch-depth: 0
ref: ${{ github.event.inputs.commit_hash }}
ref: ${{ github.event.inputs.ref }}
- name: Get 3rd party SDKs
uses: actions/checkout@v3
with:
Expand All @@ -44,17 +44,17 @@ jobs:
uses: actions/cache@v3
with:
path: build/win64-cross/ccache
key: ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }}
key: ccache-win64-cross-msvc-${{ github.sha }}
restore-keys: |
ccache-win64-cross-msvc-${{ github.event.inputs.commit_hash }}
ccache-win64-cross-msvc
- name: Cross-compile win64 artifacts
env:
CMAKE_EXTRA_ARGS: '-DBUILD_STONESENSE:BOOL=1 -DBUILD_DFLAUNCH:BOOL=1'
steam_username: ${{ secrets.STEAM_SDK_USERNAME }}
steam_password: ${{ secrets.STEAM_SDK_PASSWORD }}
run: |
echo "commit: ${{ github.event.inputs.commit_hash }}"
echo "ref: ${{ github.event.inputs.ref }}"
echo "sha: ${{ github.sha }}"
echo "version: ${{ github.event.inputs.version }}"
echo "release_channel: ${{ github.event.inputs.release_channel }}"
echo
Expand Down

0 comments on commit c3326d1

Please sign in to comment.