Skip to content

Commit 4df894d

Browse files
committed
Continuous Building
1 parent dbe3e63 commit 4df894d

File tree

17 files changed

+145
-145
lines changed

17 files changed

+145
-145
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
inputs:
2-
ARTIFACT_PATH:
2+
PATH:
33
required: true
44
CACHE_KEY:
55
required: true
66
outputs:
77
CACHE_HIT:
8-
value: ${{ steps.restore-artifact-cache.outputs.cache-hit }}
8+
value: ${{ steps.cache-restore.outputs.cache-hit }}
99
runs:
1010
using: composite
1111
steps:
1212
- uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830
13-
id: restore-artifact-cache
13+
id: cache-restore
1414
with:
1515
key: ${{ inputs.CACHE_KEY }}
16-
path: ${{ inputs.ARTIFACT_PATH }}
16+
path: ${{ inputs.PATH }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
inputs:
2-
ARTIFACT_PATH:
2+
PATH:
33
required: true
44
CACHE_KEY:
55
required: true
@@ -9,4 +9,4 @@ runs:
99
- uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830
1010
with:
1111
key: ${{ inputs.CACHE_KEY }}
12-
path: ${{ inputs.ARTIFACT_PATH }}
12+
path: ${{ inputs.PATH }}

.github/actions/continuous-building/ericw-tools/build-binaries/linux/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@ runs:
1717
with:
1818
CICD_WORKING_DIRECTORY: working-directory/
1919
- name: Restore the artifact from cache
20-
id: restore-artifact-cache
21-
uses: ./.github/actions/_shared/restore-artifact-cache
20+
id: cache-restore
21+
uses: ./.github/actions/_shared/cache-restore
2222
with:
23-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
23+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
2424
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
2525
- name: Install Qt
26-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
26+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
2727
uses: ./.github/actions/_shared/install-qt
2828
with:
2929
CICD_OPERATING_SYSTEM_NAME: ${{ inputs.CICD_OPERATING_SYSTEM_NAME }}
3030
QT_VERSION: 6.7.0
3131
- name: Compile the source code
32-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
32+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3333
working-directory: working-directory/
3434
run: |
3535
set -euo pipefail
3636
./build-linux-64.sh
3737
shell: bash
3838
- name: Prepare the artifact
39-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
39+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
4040
working-directory: working-directory/
4141
run: |
4242
set -euo pipefail
4343
7z x "$(find build-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/ -type f -name '${{ inputs.ARTIFACT_FILENAME }}-*.zip' | head -n 1)" -o"${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/" -y
4444
shell: bash
4545
- name: Save the artifact as cache
46-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
47-
uses: ./.github/actions/_shared/save-artifact-cache
46+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
47+
uses: ./.github/actions/_shared/cache-save
4848
with:
49-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
49+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
5050
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/ericw-tools/build-binaries/windows/action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,31 @@ runs:
1717
with:
1818
CICD_WORKING_DIRECTORY: working-directory/
1919
- name: Restore the artifact from cache
20-
id: restore-artifact-cache
21-
uses: ./.github/actions/_shared/restore-artifact-cache
20+
id: cache-restore
21+
uses: ./.github/actions/_shared/cache-restore
2222
with:
23-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
23+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
2424
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
2525
- name: Set up the MSVC environment
26-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
26+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
2727
uses: ./.github/actions/_shared/setup-msvc-environment
2828
with:
2929
MSVC_VERSION: 2022
3030
- name: Install Qt
31-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
31+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3232
uses: ./.github/actions/_shared/install-qt
3333
with:
3434
CICD_OPERATING_SYSTEM_NAME: ${{ inputs.CICD_OPERATING_SYSTEM_NAME }}
3535
QT_VERSION: 6.7.0
3636
- name: Compile the source code
37-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
37+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3838
working-directory: working-directory/
3939
run: |
4040
$ErrorActionPreference = 'Stop'
4141
.\build-windows.ps1
4242
shell: pwsh
4343
- name: Prepare the artifact
44-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
44+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
4545
working-directory: working-directory/
4646
run: |
4747
$ErrorActionPreference = 'Stop'
@@ -51,8 +51,8 @@ runs:
5151
CICD_OPERATING_SYSTEM_NAME: ${{ inputs.CICD_OPERATING_SYSTEM_NAME }}
5252
shell: pwsh
5353
- name: Save the artifact as cache
54-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
55-
uses: ./.github/actions/_shared/save-artifact-cache
54+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
55+
uses: ./.github/actions/_shared/cache-save
5656
with:
57-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
57+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
5858
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/ericw-tools/generate-metadata/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ runs:
2727
with:
2828
CICD_WORKING_DIRECTORY: working-directory/
2929
- name: Restore the artifact from cache
30-
id: restore-artifact-cache
31-
uses: ./.github/actions/_shared/restore-artifact-cache
30+
id: cache-restore
31+
uses: ./.github/actions/_shared/cache-restore
3232
with:
33-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
33+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
3434
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-metadata-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
3535
- name: Set the current commit details
36-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
36+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3737
uses: ./.github/actions/_shared/set-current-commit-details
3838
with:
3939
CICD_WORKING_DIRECTORY: working-directory/
4040
- name: Create the content
41-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
41+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
4242
working-directory: working-directory/
4343
run: |
4444
set -euo pipefail
@@ -52,8 +52,8 @@ runs:
5252
> **Repository**: https://github.com/${{ inputs.ARTIFACT_REPOSITORY }}" >> ${{ inputs.ARTIFACT_FILENAME }}-metadata/METADATA.md
5353
shell: bash
5454
- name: Save the artifact as cache
55-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
56-
uses: ./.github/actions/_shared/save-artifact-cache
55+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
56+
uses: ./.github/actions/_shared/cache-save
5757
with:
58-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
58+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
5959
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-metadata-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/goldutil/build-binaries/linux/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ runs:
1717
with:
1818
CICD_WORKING_DIRECTORY: working-directory/
1919
- name: Restore the artifact from cache
20-
id: restore-artifact-cache
21-
uses: ./.github/actions/_shared/restore-artifact-cache
20+
id: cache-restore
21+
uses: ./.github/actions/_shared/cache-restore
2222
with:
23-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
23+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
2424
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
2525
- name: Compile the source code
26-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
26+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
2727
working-directory: working-directory/
2828
run: |
2929
set -euo pipefail
3030
make
3131
shell: bash
3232
- name: Prepare the artifact
33-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
33+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3434
working-directory: working-directory/
3535
run: |
3636
set -euo pipefail
3737
mkdir -p ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
3838
cp ${{ inputs.ARTIFACT_FILENAME }} ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/${{ inputs.ARTIFACT_FILENAME }}
3939
shell: bash
4040
- name: Save the artifact as cache
41-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
42-
uses: ./.github/actions/_shared/save-artifact-cache
41+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
42+
uses: ./.github/actions/_shared/cache-save
4343
with:
44-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
44+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
4545
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/goldutil/build-binaries/windows/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ runs:
1717
with:
1818
CICD_WORKING_DIRECTORY: working-directory/
1919
- name: Restore the artifact from cache
20-
id: restore-artifact-cache
21-
uses: ./.github/actions/_shared/restore-artifact-cache
20+
id: cache-restore
21+
uses: ./.github/actions/_shared/cache-restore
2222
with:
23-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
23+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
2424
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
2525
- name: Compile the source code
26-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
26+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
2727
working-directory: working-directory/
2828
run: |
2929
$ErrorActionPreference = 'Stop'
3030
make windows
3131
shell: pwsh
3232
- name: Prepare the artifact
33-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
33+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3434
working-directory: working-directory/
3535
run: |
3636
$ErrorActionPreference = 'Stop'
@@ -42,8 +42,8 @@ runs:
4242
CICD_OPERATING_SYSTEM_NAME: ${{ inputs.CICD_OPERATING_SYSTEM_NAME }}
4343
shell: pwsh
4444
- name: Save the artifact as cache
45-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
46-
uses: ./.github/actions/_shared/save-artifact-cache
45+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
46+
uses: ./.github/actions/_shared/cache-save
4747
with:
48-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
48+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
4949
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/goldutil/generate-metadata/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ runs:
2727
with:
2828
CICD_WORKING_DIRECTORY: working-directory/
2929
- name: Restore the artifact from cache
30-
id: restore-artifact-cache
31-
uses: ./.github/actions/_shared/restore-artifact-cache
30+
id: cache-restore
31+
uses: ./.github/actions/_shared/cache-restore
3232
with:
33-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
33+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
3434
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-metadata-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
3535
- name: Set the current commit details
36-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
36+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3737
uses: ./.github/actions/_shared/set-current-commit-details
3838
with:
3939
CICD_WORKING_DIRECTORY: working-directory/
4040
- name: Create the content
41-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
41+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
4242
working-directory: working-directory/
4343
run: |
4444
set -euo pipefail
@@ -52,8 +52,8 @@ runs:
5252
> **Repository**: https://github.com/${{ inputs.ARTIFACT_REPOSITORY }}" >> ${{ inputs.ARTIFACT_FILENAME }}-metadata/METADATA.md
5353
shell: bash
5454
- name: Save the artifact as cache
55-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
56-
uses: ./.github/actions/_shared/save-artifact-cache
55+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
56+
uses: ./.github/actions/_shared/cache-save
5757
with:
58-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
58+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-metadata/
5959
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-metadata-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/ironwail/build-binaries/linux/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ runs:
1717
with:
1818
CICD_WORKING_DIRECTORY: working-directory/
1919
- name: Restore the artifact from cache
20-
id: restore-artifact-cache
21-
uses: ./.github/actions/_shared/restore-artifact-cache
20+
id: cache-restore
21+
uses: ./.github/actions/_shared/cache-restore
2222
with:
23-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
23+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
2424
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
2525
- name: Install dependencies
26-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
26+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
2727
working-directory: working-directory/
2828
run: |
2929
set -euo pipefail
3030
sudo apt update
3131
sudo apt install -y --no-install-recommends libcurl4-openssl-dev libmpg123-dev libsdl2-dev libvorbis-dev
3232
shell: bash
3333
- name: Compile the source code
34-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
34+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
3535
working-directory: working-directory/
3636
run: |
3737
set -euo pipefail
3838
make --jobs=3 --keep-going --directory=Quake CC=gcc
3939
shell: bash
4040
- name: Prepare the artifact
41-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
41+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
4242
working-directory: working-directory/
4343
run: |
4444
set -euo pipefail
@@ -47,8 +47,8 @@ runs:
4747
cp Quake/${{ inputs.ARTIFACT_FILENAME }}.pak ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/${{ inputs.ARTIFACT_FILENAME }}.pak
4848
shell: bash
4949
- name: Save the artifact as cache
50-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
51-
uses: ./.github/actions/_shared/save-artifact-cache
50+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
51+
uses: ./.github/actions/_shared/cache-save
5252
with:
53-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
53+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
5454
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

.github/actions/continuous-building/ironwail/build-binaries/windows/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ runs:
1717
with:
1818
CICD_WORKING_DIRECTORY: working-directory/
1919
- name: Restore the artifact from cache
20-
id: restore-artifact-cache
21-
uses: ./.github/actions/_shared/restore-artifact-cache
20+
id: cache-restore
21+
uses: ./.github/actions/_shared/cache-restore
2222
with:
23-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
23+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
2424
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}
2525
- name: Set specific environment variables
26-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
26+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
2727
working-directory: working-directory/
2828
run: |
2929
$ErrorActionPreference = 'Stop'
@@ -44,7 +44,7 @@ runs:
4444
ARTIFACT_FILENAME: ${{ inputs.ARTIFACT_FILENAME }}
4545
CICD_OPERATING_SYSTEM_NAME: ${{ inputs.CICD_OPERATING_SYSTEM_NAME }}
4646
- name: Compile the source code
47-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
47+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
4848
working-directory: working-directory/
4949
run: |
5050
$ErrorActionPreference = 'Stop'
@@ -55,7 +55,7 @@ runs:
5555
env:
5656
ARTIFACT_FILENAME: ${{ inputs.ARTIFACT_FILENAME }}
5757
- name: Prepare the artifact
58-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
58+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
5959
working-directory: working-directory/
6060
run: |
6161
$ErrorActionPreference = 'Stop'
@@ -73,8 +73,8 @@ runs:
7373
env:
7474
ARTIFACT_FILENAME: ${{ inputs.ARTIFACT_FILENAME }}
7575
- name: Save the artifact as cache
76-
if: steps.restore-artifact-cache.outputs.CACHE_HIT != 'true'
77-
uses: ./.github/actions/_shared/save-artifact-cache
76+
if: steps.cache-restore.outputs.CACHE_HIT != 'true'
77+
uses: ./.github/actions/_shared/cache-save
7878
with:
79-
ARTIFACT_PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
79+
PATH: working-directory/${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}/
8080
CACHE_KEY: ${{ inputs.ARTIFACT_FILENAME }}-files-${{ inputs.CICD_OPERATING_SYSTEM_NAME }}-${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}

0 commit comments

Comments
 (0)