-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further fix the dep cache to last a max of one day
- Loading branch information
1 parent
9ea521a
commit 1962f1c
Showing
4 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,13 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- name: Set DepCache Variables | ||
if: ${{ inputs.RequiredDeps != '' }} | ||
shell: powershell | ||
id: vars | ||
env: | ||
DEPS: "${{ inputs.RequiredDeps }}" | ||
run: ${{ github.workspace }}\.github\set_dep_vars.ps1 | ||
- name: ENV Set | ||
run: | | ||
$dir=$env:GITHUB_WORKSPACE | ||
|
@@ -110,7 +117,7 @@ jobs: | |
with: | ||
path: | | ||
d:/artifacts | ||
key: ${{ inputs.BuildPkg }} | ||
key: ${{ steps.vars.outputs.DepsCacheKey }} | ||
|
||
|
||
- name: MSBuild Setup | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,27 +23,26 @@ jobs: | |
run: | ||
shell: pwsh | ||
steps: | ||
- name: Check Existing Cache | ||
id: cachecheck | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
d:/artifacts | ||
key: ${{ inputs.BuildPkg }}-${{ inputs.RequiredDeps }} | ||
lookup-only: true | ||
|
||
|
||
- uses: actions/[email protected] | ||
if: steps.cachecheck.outputs.cache-hit != 'true' | ||
with: | ||
submodules: true | ||
|
||
- name: Set Variables | ||
- name: Set DepCache Variables | ||
shell: powershell | ||
id: vars | ||
if: steps.cachecheck.outputs.cache-hit != 'true' | ||
env: | ||
DEPS: "${{ inputs.RequiredDeps }}" | ||
run: ${{ github.workspace }}\.github\set_dep_vars.ps1 | ||
|
||
- name: Check Existing Cache | ||
id: cachecheck | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
d:/artifacts | ||
key: ${{ steps.vars.outputs.DepsCacheKey }} | ||
lookup-only: true | ||
|
||
- name: Download Artifact ${{ steps.vars.outputs.Dep1Name }} | ||
uses: mitchcapper/action-download-artifact@ce1b9a1572bf43f4e5e89568e74cb1f2299e6362 | ||
|
@@ -129,7 +128,7 @@ jobs: | |
with: | ||
path: | | ||
d:/artifacts | ||
key: ${{ inputs.BuildPkg }}-${{ inputs.RequiredDeps }} | ||
key: ${{ steps.vars.outputs.DepsCacheKey }} | ||
# - name: Debug Session | ||
# if: ${{ failure() }} | ||
# run: D:/a/docs/docs/.github/debug_ssh_start.ps1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters