ci: update GitHub Actions to latest major versions

This commit is contained in:
Laurent Trinques
2026-07-06 16:43:16 +02:00
parent 82cd4d359a
commit be008fb5f6
2 changed files with 16 additions and 16 deletions
+9 -9
View File
@@ -14,7 +14,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v7
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
@@ -44,7 +44,7 @@ jobs:
mingw-w64-ucrt-x86_64-angleproject mingw-w64-ucrt-x86_64-angleproject
- name: Cache ccache - name: Cache ccache
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: C:\Users\runneradmin\AppData\Local\ccache path: C:\Users\runneradmin\AppData\Local\ccache
key: ccache-windows-${{ github.ref_name }}-${{ github.sha }} key: ccache-windows-${{ github.ref_name }}-${{ github.sha }}
@@ -306,7 +306,7 @@ jobs:
- name: Upload build logs on failure - name: Upload build logs on failure
if: failure() if: failure()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: build-logs name: build-logs
path: | path: |
@@ -334,21 +334,21 @@ jobs:
"zip_name=$zipName" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append "zip_name=$zipName" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
- name: Upload portable (files/ without installer) - name: Upload portable (files/ without installer)
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: qelectrotech-${{ steps.qet_version.outputs.base_version }}+git${{ steps.qet_version.outputs.head }}-x86-win64-readytouse name: qelectrotech-${{ steps.qet_version.outputs.base_version }}+git${{ steps.qet_version.outputs.head }}-x86-win64-readytouse
path: dist/${{ steps.zip_portable.outputs.zip_name }} path: dist/${{ steps.zip_portable.outputs.zip_name }}
retention-days: 14 retention-days: 14
- name: Upload NSIS installer - name: Upload NSIS installer
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: qelectrotech-windows-installer name: qelectrotech-windows-installer
path: dist/Installer_*.exe path: dist/Installer_*.exe
retention-days: 14 retention-days: 14
- name: Upload portable (nom fixe pour le workflow MSI) - name: Upload portable (nom fixe pour le workflow MSI)
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: qelectrotech-windows-portable name: qelectrotech-windows-portable
path: nsis_root/files/ path: nsis_root/files/
@@ -367,7 +367,7 @@ jobs:
steps: steps:
- name: Checkout master (for build-aux scripts) - name: Checkout master (for build-aux scripts)
uses: actions/checkout@v4 uses: actions/checkout@v7
with: with:
ref: master ref: master
path: source path: source
@@ -375,13 +375,13 @@ jobs:
sparse-checkout-cone-mode: false sparse-checkout-cone-mode: false
- name: Download installer artifact - name: Download installer artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
name: qelectrotech-windows-installer name: qelectrotech-windows-installer
path: downloaded/installer/ path: downloaded/installer/
- name: Download portable artifact - name: Download portable artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
pattern: qelectrotech-*-readytouse pattern: qelectrotech-*-readytouse
path: downloaded/portable/ path: downloaded/portable/
+7 -7
View File
@@ -33,7 +33,7 @@ jobs:
# 1. Checkout (to retrieve QElectroTech.wxs and sources) # 1. Checkout (to retrieve QElectroTech.wxs and sources)
# ---------------------------------------------------------------- # ----------------------------------------------------------------
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v8
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -43,7 +43,7 @@ jobs:
# "qelectrotech-windows-portable" (fixed name) # "qelectrotech-windows-portable" (fixed name)
# ---------------------------------------------------------------- # ----------------------------------------------------------------
- name: Download portable artifact - name: Download portable artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
name: qelectrotech-windows-portable name: qelectrotech-windows-portable
path: artifact\files path: artifact\files
@@ -283,7 +283,7 @@ jobs:
# ---------------------------------------------------------------- # ----------------------------------------------------------------
- name: Upload unsigned MSI artifact (pre-signing) - name: Upload unsigned MSI artifact (pre-signing)
id: upload_unsigned id: upload_unsigned
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: qelectrotech-windows-msi-unsigned name: qelectrotech-windows-msi-unsigned
path: dist\*.msi path: dist\*.msi
@@ -316,7 +316,7 @@ jobs:
# 10. Upload the signed MSI artifact # 10. Upload the signed MSI artifact
# ---------------------------------------------------------------- # ----------------------------------------------------------------
- name: Upload MSI artifact - name: Upload MSI artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: qelectrotech-windows-msi name: qelectrotech-windows-msi
path: dist\*.msi path: dist\*.msi
@@ -373,7 +373,7 @@ jobs:
# Toutes les URLs sont connues ici (exe, zip, msi). # Toutes les URLs sont connues ici (exe, zip, msi).
# ---------------------------------------------------------------- # ----------------------------------------------------------------
- name: Checkout (for generate-page.py) - name: Checkout (for generate-page.py)
uses: actions/checkout@v4 uses: actions/checkout@v8
with: with:
ref: master ref: master
path: source path: source
@@ -418,9 +418,9 @@ jobs:
run: touch gh-pages/.nojekyll run: touch gh-pages/.nojekyll
- name: Upload GitHub Pages artifact - name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v5
with: with:
path: gh-pages/ path: gh-pages/
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v5