Skip to content

Commit

Permalink
internal: add caching to GitHub Actions (#2278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Dec 22, 2024
1 parent c8509fb commit e6831f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/actions/pr_base/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ runs:
git commit -m "Merge PRs ${{inputs.DEPLOY_BRANCH}}"
shell: powershell

- name: Get Current Git SHA
id: repo_sha
shell: powershell
run: |
$sha = git rev-parse HEAD
echo "sha=$sha" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Cache build dir
uses: actions/cache@v4
with:
path: ${{github.workspace}}/build
key: ${{ runner.os }}-skymp-${{ hashFiles('./build-metadata.json') }}-${{ env.sha }}

- name: Early build skymp5-client
run: |
cd ${{github.workspace}}/skymp5-client
Expand Down

0 comments on commit e6831f7

Please sign in to comment.