mirror of https://github.com/PCSX2/pcsx2.git
CI: migrate to upload-artifact@v4, download-artifact@v4 and labeler@v5 (#10431)
* Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/download-artifact from 3 to 4 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * github: group github actions updates going forward * ci: update to labeler@v5 * ci: properly differentiate between windows build artifacts on PRs * ci: workaround flatpak-builder temporarily as well as test fix * ci: simplify things, just explicitly specify the artifact names in the workflows --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
This commit is contained in:
parent
eef53f1b54
commit
7207681485
|
@ -6,3 +6,7 @@ updates:
|
||||||
schedule:
|
schedule:
|
||||||
# Check for updates to GitHub Actions every week
|
# Check for updates to GitHub Actions every week
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
groups:
|
||||||
|
ci-deps:
|
||||||
|
patterns:
|
||||||
|
- "*"
|
||||||
|
|
|
@ -2,127 +2,187 @@
|
||||||
|
|
||||||
# General Labels
|
# General Labels
|
||||||
'Build | Project System':
|
'Build | Project System':
|
||||||
- '.github/*'
|
- changed-files:
|
||||||
- '.github/**/*'
|
- any-glob-to-any-file:
|
||||||
- '*.sln'
|
- '.github/*'
|
||||||
- '**/*.sln'
|
- '.github/**/*'
|
||||||
- '*.vcxproj*'
|
- '*.sln'
|
||||||
- '**/*.vcxproj*'
|
- '**/*.sln'
|
||||||
- 'cmake/*'
|
- '*.vcxproj*'
|
||||||
- 'cmake/**/*'
|
- '**/*.vcxproj*'
|
||||||
- 'CMakeLists.txt'
|
- 'cmake/*'
|
||||||
- '**/CMakeLists.txt'
|
- 'cmake/**/*'
|
||||||
- 'build.sh'
|
- 'CMakeLists.txt'
|
||||||
|
- '**/CMakeLists.txt'
|
||||||
|
- 'build.sh'
|
||||||
'Dependencies':
|
'Dependencies':
|
||||||
- '3rdparty/*'
|
- changed-files:
|
||||||
- '3rdparty/**/*'
|
- any-glob-to-any-file:
|
||||||
- '**/3rdpartyDeps.props'
|
- '3rdparty/*'
|
||||||
- '.gitmodules'
|
- '3rdparty/**/*'
|
||||||
|
- '**/3rdpartyDeps.props'
|
||||||
|
- '.gitmodules'
|
||||||
'Documentation':
|
'Documentation':
|
||||||
- '*.md'
|
- changed-files:
|
||||||
- '**/*.md'
|
- any-glob-to-any-file:
|
||||||
- '*.pdf'
|
- '*.md'
|
||||||
- '**/*.pdf'
|
- '**/*.md'
|
||||||
|
- '*.pdf'
|
||||||
|
- '**/*.pdf'
|
||||||
'GUI/Qt':
|
'GUI/Qt':
|
||||||
- 'pcsx2-qt/*'
|
- changed-files:
|
||||||
- 'pcsx2-qt/**/*'
|
- any-glob-to-any-file:
|
||||||
- '3rdparty/Qt/*'
|
- 'pcsx2-qt/*'
|
||||||
- '3rdparty/Qt/**/*'
|
- 'pcsx2-qt/**/*'
|
||||||
|
- '3rdparty/Qt/*'
|
||||||
|
- '3rdparty/Qt/**/*'
|
||||||
'GameDB':
|
'GameDB':
|
||||||
- '**/GameIndex.*'
|
- changed-files:
|
||||||
|
- any-glob-to-any-file:
|
||||||
|
- '**/GameIndex.*'
|
||||||
'Installer | Package':
|
'Installer | Package':
|
||||||
- 'build.sh'
|
- changed-files:
|
||||||
|
- any-glob-to-any-file:
|
||||||
|
- 'build.sh'
|
||||||
'Translations':
|
'Translations':
|
||||||
- 'pcsx2-qt/Translations/*'
|
- changed-files:
|
||||||
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2-qt/Translations/*'
|
||||||
|
|
||||||
# Tools / Features
|
# Tools / Features
|
||||||
'Debugger':
|
'Debugger':
|
||||||
- 'pcsx2/DebugTools/*'
|
- changed-files:
|
||||||
- 'pcsx2/DebugTools/**/*'
|
- any-glob-to-any-file:
|
||||||
- 'pcsx2-qt/Debugger/*'
|
- 'pcsx2/DebugTools/*'
|
||||||
- 'pcsx2-qt/Debugger/**/*'
|
- 'pcsx2/DebugTools/**/*'
|
||||||
|
- 'pcsx2-qt/Debugger/*'
|
||||||
|
- 'pcsx2-qt/Debugger/**/*'
|
||||||
'IPC':
|
'IPC':
|
||||||
- 'pcsx2/IPC*'
|
- changed-files:
|
||||||
- 'pcsx2/**/IPC*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/IPC*'
|
||||||
|
- 'pcsx2/**/IPC*'
|
||||||
'TAS Functionality':
|
'TAS Functionality':
|
||||||
- 'pcsx2/Recording/*'
|
- changed-files:
|
||||||
- 'pcsx2/Recording/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/Recording/*'
|
||||||
|
- 'pcsx2/Recording/**/*'
|
||||||
'RetroAchievements':
|
'RetroAchievements':
|
||||||
- 'pcsx2/Frontend/Achievements.*'
|
- changed-files:
|
||||||
- 'pcsx2/Achievements.*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/Frontend/Achievements.*'
|
||||||
|
- 'pcsx2/Achievements.*'
|
||||||
|
|
||||||
# Emulation Components
|
# Emulation Components
|
||||||
'Counters':
|
'Counters':
|
||||||
- 'pcsx2/Counters.*'
|
- changed-files:
|
||||||
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/Counters.*'
|
||||||
'Vector Units':
|
'Vector Units':
|
||||||
- 'pcsx2/VU*'
|
- changed-files:
|
||||||
- 'pcsx2/**/VU*'
|
- any-glob-to-any-file:
|
||||||
- 'pcsx2/*VU*'
|
- 'pcsx2/VU*'
|
||||||
- 'pcsx2/**/*VU*'
|
- 'pcsx2/**/VU*'
|
||||||
|
- 'pcsx2/*VU*'
|
||||||
|
- 'pcsx2/**/*VU*'
|
||||||
'VIF':
|
'VIF':
|
||||||
- 'pcsx2/Vif*'
|
- changed-files:
|
||||||
- 'pcsx2/**/Vif*'
|
- any-glob-to-any-file:
|
||||||
- 'pcsx2/VIF*'
|
- 'pcsx2/Vif*'
|
||||||
- 'pcsx2/**/VIF*'
|
- 'pcsx2/**/Vif*'
|
||||||
|
- 'pcsx2/VIF*'
|
||||||
|
- 'pcsx2/**/VIF*'
|
||||||
|
|
||||||
# GS Related Labels
|
# GS Related Labels
|
||||||
'GS':
|
'GS':
|
||||||
- 'pcsx2/GS/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/**/*'
|
- any-glob-to-any-file:
|
||||||
- 'bin/resources/shaders/*'
|
- 'pcsx2/GS/*'
|
||||||
- 'bin/resources/shaders/**/*'
|
- 'pcsx2/GS/**/*'
|
||||||
|
- 'bin/resources/shaders/*'
|
||||||
|
- 'bin/resources/shaders/**/*'
|
||||||
'GS: Direct3D 11':
|
'GS: Direct3D 11':
|
||||||
- 'pcsx2/GS/Renderers/DX11/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/DX11/**/*'
|
- any-glob-to-any-file:
|
||||||
- 'bin/resources/shaders/dx11/*'
|
- 'pcsx2/GS/Renderers/DX11/*'
|
||||||
- 'bin/resources/shaders/dx11/**/*'
|
- 'pcsx2/GS/Renderers/DX11/**/*'
|
||||||
|
- 'bin/resources/shaders/dx11/*'
|
||||||
|
- 'bin/resources/shaders/dx11/**/*'
|
||||||
'GS: Direct3D 12':
|
'GS: Direct3D 12':
|
||||||
- 'pcsx2/GS/Renderers/DX12/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/DX12/**/*'
|
- any-glob-to-any-file:
|
||||||
- 'bin/resources/shaders/dx11/*'
|
- 'pcsx2/GS/Renderers/DX12/*'
|
||||||
- 'bin/resources/shaders/dx11/**/*'
|
- 'pcsx2/GS/Renderers/DX12/**/*'
|
||||||
|
- 'bin/resources/shaders/dx11/*'
|
||||||
|
- 'bin/resources/shaders/dx11/**/*'
|
||||||
'GS: Hardware':
|
'GS: Hardware':
|
||||||
- 'pcsx2/GS/Renderers/HW/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/HW/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/GS/Renderers/HW/*'
|
||||||
|
- 'pcsx2/GS/Renderers/HW/**/*'
|
||||||
'GS: OpenGL':
|
'GS: OpenGL':
|
||||||
- 'pcsx2/GS/Renderers/OpenGL/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/OpenGL/**/*'
|
- any-glob-to-any-file:
|
||||||
- 'bin/resources/shaders/opengl/*'
|
- 'pcsx2/GS/Renderers/OpenGL/*'
|
||||||
- 'bin/resources/shaders/opengl/**/*'
|
- 'pcsx2/GS/Renderers/OpenGL/**/*'
|
||||||
|
- 'bin/resources/shaders/opengl/*'
|
||||||
|
- 'bin/resources/shaders/opengl/**/*'
|
||||||
'GS: Vulkan':
|
'GS: Vulkan':
|
||||||
- 'pcsx2/GS/Renderers/Vulkan/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/Vulkan/**/*'
|
- any-glob-to-any-file:
|
||||||
- 'bin/resources/shaders/vulkan/*'
|
- 'pcsx2/GS/Renderers/Vulkan/*'
|
||||||
- 'bin/resources/shaders/vulkan/**/*'
|
- 'pcsx2/GS/Renderers/Vulkan/**/*'
|
||||||
|
- 'bin/resources/shaders/vulkan/*'
|
||||||
|
- 'bin/resources/shaders/vulkan/**/*'
|
||||||
'GS: Metal':
|
'GS: Metal':
|
||||||
- 'pcsx2/GS/Renderers/Metal/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/Metal/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/GS/Renderers/Metal/*'
|
||||||
|
- 'pcsx2/GS/Renderers/Metal/**/*'
|
||||||
'GS: Texture Cache':
|
'GS: Texture Cache':
|
||||||
- 'pcsx2/GS/Renderers/*TextureCache*.*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/**/*TextureCache*.*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/GS/Renderers/*TextureCache*.*'
|
||||||
|
- 'pcsx2/GS/Renderers/**/*TextureCache*.*'
|
||||||
'GS: Software':
|
'GS: Software':
|
||||||
- 'pcsx2/GS/Renderers/SW/*'
|
- changed-files:
|
||||||
- 'pcsx2/GS/Renderers/SW/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/GS/Renderers/SW/*'
|
||||||
|
- 'pcsx2/GS/Renderers/SW/**/*'
|
||||||
|
|
||||||
# Other Core Components
|
# Other Core Components
|
||||||
'CDVD':
|
'CDVD':
|
||||||
- 'pcsx2/CDVD/*'
|
- changed-files:
|
||||||
- 'pcsx2/CDVD/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/CDVD/*'
|
||||||
|
- 'pcsx2/CDVD/**/*'
|
||||||
'DEV9':
|
'DEV9':
|
||||||
- 'pcsx2/DEV9/*'
|
- changed-files:
|
||||||
- 'pcsx2/DEV9/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/DEV9/*'
|
||||||
|
- 'pcsx2/DEV9/**/*'
|
||||||
'IPU':
|
'IPU':
|
||||||
- 'pcsx2/IPU/*'
|
- changed-files:
|
||||||
- 'pcsx2/IPU/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/IPU/*'
|
||||||
|
- 'pcsx2/IPU/**/*'
|
||||||
'Memory Card':
|
'Memory Card':
|
||||||
- 'pcsx2/SIO/Memcard/*'
|
- changed-files:
|
||||||
- 'pcsx2/SIO/Memcard/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/SIO/Memcard/*'
|
||||||
|
- 'pcsx2/SIO/Memcard/**/*'
|
||||||
'PAD':
|
'PAD':
|
||||||
- 'pcsx2/SIO/Pad/*'
|
- changed-files:
|
||||||
- 'pcsx2/SIO/Pad/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/SIO/Pad/*'
|
||||||
|
- 'pcsx2/SIO/Pad/**/*'
|
||||||
'SPU2':
|
'SPU2':
|
||||||
- 'pcsx2/SPU2/*'
|
- changed-files:
|
||||||
- 'pcsx2/SPU2/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/SPU2/*'
|
||||||
|
- 'pcsx2/SPU2/**/*'
|
||||||
'USB':
|
'USB':
|
||||||
- 'pcsx2/USB/*'
|
- changed-files:
|
||||||
- 'pcsx2/USB/**/*'
|
- any-glob-to-any-file:
|
||||||
|
- 'pcsx2/USB/*'
|
||||||
|
- 'pcsx2/USB/**/*'
|
||||||
|
|
|
@ -6,6 +6,9 @@ on:
|
||||||
jobName:
|
jobName:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
artifactPrefixName:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
os:
|
os:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -60,9 +63,7 @@ jobs:
|
||||||
id: artifact-metadata
|
id: artifact-metadata
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: linux
|
PREFIX: ${{ inputs.artifactPrefixName }}
|
||||||
BUILD_SYSTEM: flatpak
|
|
||||||
ARCH: ${{ inputs.platform }}
|
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
PR_NUM: ${{ github.event.pull_request.number }}
|
PR_NUM: ${{ github.event.pull_request.number }}
|
||||||
|
@ -90,9 +91,11 @@ jobs:
|
||||||
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
|
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
|
||||||
|
|
||||||
- name: Build Flatpak
|
- name: Build Flatpak
|
||||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.3
|
# TODO - based on v6.3, switch back to the main action once change is accepted (or they release a breaking change that uses upload-artifact@v4)
|
||||||
|
uses: xTVaser/flatpak-github-actions/flatpak-builder@64267d4cf01f7955a40128039d0abab17bb48aac
|
||||||
with:
|
with:
|
||||||
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
|
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
|
||||||
|
upload-artifact: false
|
||||||
manifest-path: .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
|
manifest-path: .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-bundle: true
|
build-bundle: true
|
||||||
|
@ -131,3 +134,16 @@ jobs:
|
||||||
repository: stable
|
repository: stable
|
||||||
token: ${{ secrets.FLATHUB_TOKEN }}
|
token: ${{ secrets.FLATHUB_TOKEN }}
|
||||||
|
|
||||||
|
# NOTE - this is done after on purpose so the flatpak file is wherever it needs to be for the previous pushes
|
||||||
|
- name: Prepare artifacts folder
|
||||||
|
# NOTE - 'flatpak-builder' dumps the artifact out into the current directory
|
||||||
|
run: |
|
||||||
|
mkdir -p "$GITHUB_WORKSPACE"/ci-artifacts/
|
||||||
|
mv "./${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak" "$GITHUB_WORKSPACE"/ci-artifacts/
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
||||||
|
path: ci-artifacts
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ jobs:
|
||||||
uses: ./.github/workflows/linux_build_qt.yml
|
uses: ./.github/workflows/linux_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "AppImage Build"
|
jobName: "AppImage Build"
|
||||||
|
artifactPrefixName: "PCSX2-linux-Qt-x64-appimage-sse4"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
buildAppImage: true
|
buildAppImage: true
|
||||||
|
@ -25,6 +26,7 @@ jobs:
|
||||||
uses: ./.github/workflows/linux_build_flatpak.yml
|
uses: ./.github/workflows/linux_build_flatpak.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Flatpak Build"
|
jobName: "Flatpak Build"
|
||||||
|
artifactPrefixName: "PCSX2-linux-Qt-x64-flatpak-sse4"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
publish: false
|
publish: false
|
||||||
|
|
|
@ -6,6 +6,9 @@ on:
|
||||||
jobName:
|
jobName:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
artifactPrefixName:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
os:
|
os:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -73,8 +76,7 @@ jobs:
|
||||||
id: artifact-metadata
|
id: artifact-metadata
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: linux
|
PREFIX: ${{ inputs.artifactPrefixName }}
|
||||||
ARCH: ${{ inputs.platform }}
|
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
PR_NUM: ${{ github.event.pull_request.number }}
|
PR_NUM: ${{ github.event.pull_request.number }}
|
||||||
|
@ -142,7 +144,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
if: inputs.buildAppImage == true
|
if: inputs.buildAppImage == true
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
||||||
path: ci-artifacts
|
path: ci-artifacts
|
||||||
|
|
|
@ -6,6 +6,9 @@ on:
|
||||||
jobName:
|
jobName:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
artifactPrefixName:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
os:
|
os:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -51,7 +54,7 @@ jobs:
|
||||||
id: artifact-metadata
|
id: artifact-metadata
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: macos
|
PREFIX: ${{ inputs.artifactPrefixName }}
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
PR_NUM: ${{ github.event.pull_request.number }}
|
PR_NUM: ${{ github.event.pull_request.number }}
|
||||||
|
@ -149,7 +152,7 @@ jobs:
|
||||||
cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" ci-artifacts/macOS.tar.xz
|
cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" ci-artifacts/macOS.tar.xz
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
||||||
path: "*.tar.xz"
|
path: "*.tar.xz"
|
||||||
|
|
|
@ -15,4 +15,5 @@ jobs:
|
||||||
uses: ./.github/workflows/macos_build.yml
|
uses: ./.github/workflows/macos_build.yml
|
||||||
with:
|
with:
|
||||||
jobName: "MacOS Build"
|
jobName: "MacOS Build"
|
||||||
|
artifactPrefixName: "PCSX2-macos-Qt"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
@ -81,6 +81,7 @@ jobs:
|
||||||
uses: ./.github/workflows/linux_build_qt.yml
|
uses: ./.github/workflows/linux_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "AppImage Build"
|
jobName: "AppImage Build"
|
||||||
|
artifactPrefixName: "PCSX2-linux-Qt-x64-appimage"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
buildAppImage: true
|
buildAppImage: true
|
||||||
|
@ -95,6 +96,7 @@ jobs:
|
||||||
uses: ./.github/workflows/linux_build_flatpak.yml
|
uses: ./.github/workflows/linux_build_flatpak.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Flatpak Build"
|
jobName: "Flatpak Build"
|
||||||
|
artifactPrefixName: "PCSX2-linux-Qt-x64-flatpak"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
branch: "stable"
|
branch: "stable"
|
||||||
|
@ -111,6 +113,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Windows Build"
|
jobName: "Windows Build"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64"
|
||||||
configuration: CMake
|
configuration: CMake
|
||||||
buildSystem: cmake
|
buildSystem: cmake
|
||||||
cmakeFlags: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
|
cmakeFlags: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
|
||||||
|
@ -126,6 +129,7 @@ jobs:
|
||||||
uses: ./.github/workflows/macos_build.yml
|
uses: ./.github/workflows/macos_build.yml
|
||||||
with:
|
with:
|
||||||
jobName: "MacOS Build"
|
jobName: "MacOS Build"
|
||||||
|
artifactPrefixName: "PCSX2-macos-Qt"
|
||||||
fetchTags: true
|
fetchTags: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
@ -146,7 +150,7 @@ jobs:
|
||||||
- name: Prepare Artifact Folder
|
- name: Prepare Artifact Folder
|
||||||
run: mkdir ./ci-artifacts/
|
run: mkdir ./ci-artifacts/
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
name: Download all Artifacts
|
name: Download all Artifacts
|
||||||
with:
|
with:
|
||||||
path: ./ci-artifacts/
|
path: ./ci-artifacts/
|
||||||
|
|
|
@ -1,39 +1,26 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Artifact Naming Scheme:
|
# Artifact Naming Scheme:
|
||||||
# PCSX2-<OS>-Qt-[ARCH]-[SIMD]-[pr\[PR_NUM\]]-[title|sha\[SHA|PR_TITLE\]
|
# PCSX2-<OS>-Qt-[BUILD_SYSTEM]-[ARCH]-[SIMD]-[pr\[PR_NUM\]]-[title|sha\[SHA|PR_TITLE\]
|
||||||
# -- limited to 200 chars
|
# -- limited to 200 chars
|
||||||
# Outputs:
|
# Outputs:
|
||||||
# - artifact-name
|
# - artifact-name
|
||||||
|
|
||||||
|
# Example - PCSX2-linux-Qt-x64-flatpak-sse4-sha[e880a2749]
|
||||||
|
|
||||||
# Inputs as env-vars
|
# Inputs as env-vars
|
||||||
# OS
|
# PREFIX
|
||||||
# BUILD_SYSTEM
|
|
||||||
# ARCH
|
|
||||||
# SIMD
|
|
||||||
# EVENT_NAME
|
# EVENT_NAME
|
||||||
# PR_TITLE
|
# PR_TITLE
|
||||||
# PR_NUM
|
# PR_NUM
|
||||||
# PR_SHA
|
# PR_SHA
|
||||||
|
|
||||||
NAME=""
|
if [[ -z "${PREFIX}" ]]; then
|
||||||
|
echo "PREFIX is not set, can't name artifact without it!"
|
||||||
if [ "${OS}" == "macos" ]; then
|
exit 1
|
||||||
# MacOS has combined binaries for x64 and ARM64.
|
|
||||||
NAME="PCSX2-${OS}-Qt"
|
|
||||||
elif [[ ("${OS}" == "windows" && "$BUILD_SYSTEM" != "cmake") ]]; then
|
|
||||||
NAME="PCSX2-${OS}-Qt-${ARCH}-${SIMD}"
|
|
||||||
else
|
|
||||||
NAME="PCSX2-${OS}-Qt-${ARCH}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add cmake if used to differentate it from msbuild builds
|
NAME="${PREFIX}"
|
||||||
# Else the two artifacts will have the same name and the files will be merged
|
|
||||||
if [[ ! -z "${BUILD_SYSTEM}" ]]; then
|
|
||||||
if [[ "${BUILD_SYSTEM}" == "cmake" ]] || [[ "${BUILD_SYSTEM}" == "flatpak" ]]; then
|
|
||||||
NAME="${NAME}-${BUILD_SYSTEM}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add PR / Commit Metadata
|
# Add PR / Commit Metadata
|
||||||
if [ "$EVENT_NAME" == "pull_request" ]; then
|
if [ "$EVENT_NAME" == "pull_request" ]; then
|
||||||
|
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
if: github.repository == 'PCSX2/pcsx2'
|
if: github.repository == 'PCSX2/pcsx2'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v4.3.0
|
- uses: actions/labeler@v5
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "MSVC SSE4"
|
jobName: "MSVC SSE4"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64-sse4-msvc"
|
||||||
configuration: Release
|
configuration: Release
|
||||||
simd: "SSE4"
|
simd: "SSE4"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -38,6 +39,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "MSVC AVX2"
|
jobName: "MSVC AVX2"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64-avx2-msvc"
|
||||||
configuration: Release AVX2
|
configuration: Release AVX2
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
@ -47,6 +49,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "CMake MSVC"
|
jobName: "CMake MSVC"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64-cmake-msvc"
|
||||||
configuration: CMake
|
configuration: CMake
|
||||||
buildSystem: cmake
|
buildSystem: cmake
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -58,6 +61,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Clang SSE4"
|
jobName: "Clang SSE4"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64-sse4-clang"
|
||||||
configuration: Release Clang
|
configuration: Release Clang
|
||||||
simd: "SSE4"
|
simd: "SSE4"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -69,6 +73,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Clang AVX2"
|
jobName: "Clang AVX2"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64-avx2-clang"
|
||||||
configuration: Release Clang AVX2
|
configuration: Release Clang AVX2
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
@ -78,6 +83,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "CMake Clang"
|
jobName: "CMake Clang"
|
||||||
|
artifactPrefixName: "PCSX2-windows-Qt-x64-cmake-clang"
|
||||||
configuration: CMake
|
configuration: CMake
|
||||||
buildSystem: cmake
|
buildSystem: cmake
|
||||||
cmakeFlags: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DPCSX2_EXE_NAME=pcsx2-qt-clang
|
cmakeFlags: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DPCSX2_EXE_NAME=pcsx2-qt-clang
|
||||||
|
|
|
@ -6,6 +6,9 @@ on:
|
||||||
jobName:
|
jobName:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
artifactPrefixName:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
os:
|
os:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -62,10 +65,7 @@ jobs:
|
||||||
id: artifact-metadata
|
id: artifact-metadata
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: windows
|
PREFIX: ${{ inputs.artifactPrefixName }}
|
||||||
BUILD_SYSTEM: ${{ inputs.buildSystem }}
|
|
||||||
ARCH: ${{ inputs.platform }}
|
|
||||||
SIMD: ${{ inputs.simd }}
|
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
PR_NUM: ${{ github.event.pull_request.number }}
|
PR_NUM: ${{ github.event.pull_request.number }}
|
||||||
|
@ -122,7 +122,7 @@ jobs:
|
||||||
cmake --build build --config Release --target unittests
|
cmake --build build --config Release --target unittests
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
name: ${{ steps.artifact-metadata.outputs.artifact-name }}
|
||||||
path: |
|
path: |
|
||||||
|
@ -136,7 +136,7 @@ jobs:
|
||||||
!./bin/**/*.lib
|
!./bin/**/*.lib
|
||||||
|
|
||||||
- name: Upload artifact - with symbols
|
- name: Upload artifact - with symbols
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.artifact-metadata.outputs.artifact-name }}-symbols
|
name: ${{ steps.artifact-metadata.outputs.artifact-name }}-symbols
|
||||||
path: ./bin/**/*.pdb
|
path: ./bin/**/*.pdb
|
||||||
|
|
Loading…
Reference in New Issue