Skip to content

Commit

Permalink
CI: Update first-party GitHub Actions from v3 to v4
Browse files Browse the repository at this point in the history
GitHub Actions has deprecated Actions based on node16. The v4 actions
are based on node20. Replace first-party v3 actions with their v4
counterparts.

See:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
  • Loading branch information
RytoEX committed Jan 29, 2024
1 parent 4202b50 commit 0e91a8a
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
- name: Restore Dependencies from Cache
id: deps-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
${{ inputs.workingDirectory }}/*_build_temp/*
Expand Down Expand Up @@ -86,7 +86,7 @@ runs:
./Build-Dependencies.ps1 @Params
- name: Save Dependencies to Cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: github.event_name == 'schedule' || (github.event_name == 'push' && steps.deps-cache.outputs.cache-hit != 'true')
with:
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/build-ffmpeg/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
- name: Restore FFmpeg Dependencies from Cache
id: ffmpeg-deps-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
${{ inputs.workingDirectory }}/*_build_temp/*
Expand Down Expand Up @@ -77,7 +77,7 @@ runs:
- name: Restore FFmpeg from Cache
id: ffmpeg-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
${{ github.workspace }}/*_build_temp/FFmpeg*/*
Expand Down Expand Up @@ -119,7 +119,7 @@ runs:
- name: Save FFmpeg to Cache
if: github.event_name == 'schedule' || (github.event_name == 'push' && steps.ffmpeg-cache.outputs.cache-hit != 'true')
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
${{ github.workspace }}/*_build_temp/FFmpeg*/*
Expand All @@ -128,7 +128,7 @@ runs:

- name: Save FFmpeg Dependencies to Cache
if: github.event_name == 'schedule' || (github.event_name == 'push' && steps.ffmpeg-deps-cache.outputs.cache-hit != 'true')
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
${{ inputs.workingDirectory }}/*_build_temp/*
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/build-qt/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
- name: Restore Qt from Cache
id: deps-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
${{ inputs.workingDirectory }}/*_build_temp/qt${{ inputs.qtVersion }}*
Expand Down Expand Up @@ -100,7 +100,7 @@ runs:
- name: Save Qt to Cache
if: github.event_name == 'schedule' || (github.event_name == 'push' && steps.deps-cache.outputs.cache-hit != 'true')
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
${{ inputs.workingDirectory }}/*_build_temp/qt${{ inputs.qtVersion }}*
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/create-single-arch/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: composite
steps:
- name: Download universal macOS artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.base }}

Expand Down Expand Up @@ -80,7 +80,7 @@ runs:
print "artifactFileName=${file_name}" >> $GITHUB_OUTPUT
- name: Publish Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.combineArchs.outputs.artifactName }}
path: ${{ github.workspace }}/${{ steps.combineArchs.outputs.artifactFileName }}
6 changes: 3 additions & 3 deletions .github/actions/create-universal/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ runs:
using: composite
steps:
- name: Download arm64 macOS artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.arm64 }}

- name: Download x86_64 macOS artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.x86_64 }}

Expand Down Expand Up @@ -89,7 +89,7 @@ runs:
print "artifactFileName=${file_name}" >> $GITHUB_OUTPUT
- name: Publish Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.combineArchs.outputs.artifactName }}
path: ${{ github.workspace }}/${{ steps.combineArchs.outputs.artifactFileName }}
8 changes: 4 additions & 4 deletions .github/actions/package-windows-qt/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ runs:
using: composite
steps:
- name: Download Windows RelWithDebInfo artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.releaseArtifact }}

- name: Download Windows Debug artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.debugArtifact }}

Expand Down Expand Up @@ -126,13 +126,13 @@ runs:
Pop-Location
- name: Publish Combined Qt Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.outputName }}
path: ${{ github.workspace }}/${{ steps.combine.outputs.artifactFile }}

- name: Publish Release PDBs Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.pdbOutputName }}
path: ${{ github.workspace }}/${{ steps.combine.outputs.pdbFile }}
54 changes: 27 additions & 27 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
shortHash: ${{ steps.checks.outputs.shortHash }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check for GitHub Labels
id: checks
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
shell: zsh --no-rcs --errexit --pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Environment
id: setup
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Restore Compilation Cache
id: ccache-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/.ccache
key: ${{ matrix.target }}-ccache-ffmpeg-${{ steps.setup.outputs.ccacheDate }}
Expand All @@ -120,21 +120,21 @@ jobs:

- name: Publish Build Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.artifactFileName }}

- name: Publish Debug Symbol Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.dsymArtifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.dsymArtifactFileName }}

- name: Save Compilation Cache
if: github.event_name == 'push'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/.ccache
key: ${{ matrix.target }}-ccache-ffmpeg-${{ steps.setup.outputs.ccacheDate }}
Expand All @@ -159,7 +159,7 @@ jobs:
shell: pwsh
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Environment
id: setup
Expand All @@ -182,7 +182,7 @@ jobs:

- name: Publish Build Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}\windows\${{ steps.setup.outputs.artifactFileName }}
Expand All @@ -193,7 +193,7 @@ jobs:
needs: [pre-checks, ffmpeg-macos-build]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create universal binary package
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
shell: zsh --no-rcs --errexit --pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Environment
id: setup
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
- name: Restore Compilation Cache
id: ccache-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/.ccache
key: ${{ matrix.target }}-ccache-deps-${{ steps.setup.outputs.ccacheDate }}
Expand All @@ -278,21 +278,21 @@ jobs:

- name: Publish Build Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.artifactFileName }}

- name: Publish Debug Symbol Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.dsymArtifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.dsymArtifactFileName }}

- name: Save Compilation Cache
if: github.event_name == 'push' && steps.ccache-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/.ccache
key: ${{ matrix.target }}-ccache-deps-${{ steps.setup.outputs.ccacheDate }}
Expand All @@ -303,7 +303,7 @@ jobs:
needs: [pre-checks, macos-build]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create universal binary package
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
Expand All @@ -330,7 +330,7 @@ jobs:
shell: zsh --no-rcs --errexit --pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Environment
id: setup
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
- name: Restore Compilation Cache
id: ccache-cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/.ccache
key: macos-universal-ccache-qt6-${{ steps.setup.outputs.ccacheDate }}
Expand All @@ -373,21 +373,21 @@ jobs:

- name: Publish Build Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/macos-universal/${{ steps.setup.outputs.artifactFileName }}

- name: Publish Debug Symbol Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.dsymArtifactName }}
path: ${{ github.workspace }}/macos-universal/${{ steps.setup.outputs.dsymArtifactFileName }}

- name: Save Compilation Cache
if: github.event_name == 'push' && steps.ccache-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/.ccache
key: macos-universal-ccache-qt6-${{ steps.setup.outputs.ccacheDate }}
Expand All @@ -407,7 +407,7 @@ jobs:
needs: [pre-checks, macos-qt6-build]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create single architecture binary package
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
Expand Down Expand Up @@ -445,7 +445,7 @@ jobs:
shell: pwsh
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Environment
id: setup
Expand Down Expand Up @@ -512,7 +512,7 @@ jobs:

- name: Publish Build Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}\windows\${{ steps.setup.outputs.artifactFileName }}
Expand All @@ -529,7 +529,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Environment
id: setup
Expand All @@ -549,7 +549,7 @@ jobs:

- name: Publish Build Artifacts
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/windows/${{ steps.setup.outputs.artifactFileName }}
Expand All @@ -564,7 +564,7 @@ jobs:
needs: [pre-checks, windows-qt6-build]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create Windows Qt package
if: github.event_name != 'pull_request' || fromJSON(needs.pre-checks.outputs.seekingTesters)
Expand All @@ -591,7 +591,7 @@ jobs:
echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Package Windows dependencies
run: |
Expand Down
Loading

0 comments on commit 0e91a8a

Please sign in to comment.