CI: Update GitHub actions

This commit is contained in:
Davide Pesavento
2025-11-20 19:15:25 -05:00
committed by Connor McLaughlin
parent b79d69b702
commit 5b56399d8d
8 changed files with 15 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ on:
pull_request: pull_request:
paths: paths:
- 'data/resources/gamedb.yaml' - 'data/resources/gamedb.yaml'
- 'data/resources/discsets.yaml'
- 'data/resources/discdb.yaml' - 'data/resources/discdb.yaml'
push: push:
branches: branches:
@@ -11,6 +12,7 @@ on:
- dev - dev
paths: paths:
- 'data/resources/gamedb.yaml' - 'data/resources/gamedb.yaml'
- 'data/resources/discsets.yaml'
- 'data/resources/discdb.yaml' - 'data/resources/discdb.yaml'
workflow_dispatch: workflow_dispatch:
@@ -19,7 +21,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
timeout-minutes: 120 timeout-minutes: 120
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@@ -21,7 +21,7 @@ jobs:
artifact: "linux-x64-sse2-appimage" artifact: "linux-x64-sse2-appimage"
cmakeoptions: "-DDISABLE_SSE4=ON" cmakeoptions: "-DDISABLE_SSE4=ON"
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -78,7 +78,7 @@ jobs:
scripts/packaging/appimage/make-appimage.sh $(realpath .) $(realpath ./build) $HOME/deps "${{ matrix.asset }}" scripts/packaging/appimage/make-appimage.sh $(realpath .) $(realpath ./build) $HOME/deps "${{ matrix.asset }}"
- name: Upload AppImage - name: Upload AppImage
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: "${{ matrix.artifact }}" name: "${{ matrix.artifact }}"
path: "${{ matrix.asset }}" path: "${{ matrix.asset }}"

View File

@@ -18,7 +18,7 @@ jobs:
timeout-minutes: 240 timeout-minutes: 240
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -94,7 +94,7 @@ jobs:
scripts/packaging/appimage/make-cross-appimage.sh -inject-libc duckstation-mini ${{ matrix.arch }} "$(realpath build)" "$HOME/deps/cross" "/${{ matrix.arch }}-chroot" scripts/packaging/appimage/make-cross-appimage.sh -inject-libc duckstation-mini ${{ matrix.arch }} "$(realpath build)" "$HOME/deps/cross" "/${{ matrix.arch }}-chroot"
- name: Upload AppImages - name: Upload AppImages
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: "linux-${{ matrix.arch }}-appimage" name: "linux-${{ matrix.arch }}-appimage"
path: "DuckStation-*.AppImage" path: "DuckStation-*.AppImage"

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 240 timeout-minutes: 240
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -68,7 +68,7 @@ jobs:
zip -9 -r duckstation-mac-release.zip DuckStation.app/ zip -9 -r duckstation-mac-release.zip DuckStation.app/
- name: Upload MacOS .app - name: Upload MacOS .app
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: "macos" name: "macos"
path: "build/duckstation-mac-release.zip" path: "build/duckstation-mac-release.zip"

View File

@@ -39,7 +39,7 @@ jobs:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
steps: steps:
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v6
with: with:
path: ./artifacts/ path: ./artifacts/

View File

@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
timeout-minutes: 120 timeout-minutes: 120
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@@ -8,7 +8,7 @@ jobs:
runs-on: windows-2022 runs-on: windows-2022
timeout-minutes: 120 timeout-minutes: 120
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -30,7 +30,7 @@ jobs:
- name: Upload Cache Files - name: Upload Cache Files
if: steps.cache-deps.outputs.cache-hit == 'true' if: steps.cache-deps.outputs.cache-hit == 'true'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: "windows" name: "windows"
path: "deps-*.zip" path: "deps-*.zip"

View File

@@ -37,7 +37,7 @@ jobs:
assetname: "duckstation-windows-arm64-release.zip" assetname: "duckstation-windows-arm64-release.zip"
updatername: "updater-ARM64-ReleaseLTCG.exe" updatername: "updater-ARM64-ReleaseLTCG.exe"
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -120,7 +120,7 @@ jobs:
"C:\Program Files\7-Zip\7z.exe" a -mx9 -r ${{ matrix.assetname }} ./bin/${{ matrix.bindir }}/* "C:\Program Files\7-Zip\7z.exe" a -mx9 -r ${{ matrix.assetname }} ./bin/${{ matrix.bindir }}/*
- name: Upload ${{ matrix.name }} Release Artifact - name: Upload ${{ matrix.name }} Release Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: "windows-${{ matrix.arch }}" name: "windows-${{ matrix.arch }}"
path: "duckstation-windows-${{ matrix.arch }}-*.zip" path: "duckstation-windows-${{ matrix.arch }}-*.zip"