mirror of https://github.com/PCSX2/pcsx2.git
CI: Remove redundant GUI variables
And adjust release filenames.
This commit is contained in:
parent
81ae1ce362
commit
c5aa04d4eb
|
@ -28,10 +28,6 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
detail:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
patches_url:
|
patches_url:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -61,7 +57,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: linux
|
OS: linux
|
||||||
GUI_FRAMEWORK: QT
|
|
||||||
BUILD_SYSTEM: flatpak
|
BUILD_SYSTEM: flatpak
|
||||||
ARCH: ${{ inputs.platform }}
|
ARCH: ${{ inputs.platform }}
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
|
@ -98,7 +93,7 @@ jobs:
|
||||||
branch: ${{ inputs.branch }}
|
branch: ${{ inputs.branch }}
|
||||||
cache: true
|
cache: true
|
||||||
restore-cache: true
|
restore-cache: true
|
||||||
cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} ${{ inputs.detail }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
|
cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
|
||||||
|
|
||||||
- name: Commit screenshots to OSTree
|
- name: Commit screenshots to OSTree
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/linux_build_qt.yml
|
uses: ./.github/workflows/linux_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Qt"
|
jobName: "AppImage Build"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
buildAppImage: true
|
buildAppImage: true
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/linux_build_flatpak.yml
|
uses: ./.github/workflows/linux_build_flatpak.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Qt"
|
jobName: "Flatpak Build"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
publish: false
|
publish: false
|
||||||
|
|
|
@ -57,7 +57,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: linux
|
OS: linux
|
||||||
GUI_FRAMEWORK: QT
|
|
||||||
ARCH: ${{ inputs.platform }}
|
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 }}
|
||||||
|
@ -87,7 +86,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/deps
|
path: ~/deps
|
||||||
key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.gui }} deps ${{ hashFiles('.github/workflows/scripts/linux/build-dependencies-qt.sh') }}
|
key: ${{ inputs.os }} ${{ inputs.platform }} deps ${{ hashFiles('.github/workflows/scripts/linux/build-dependencies-qt.sh') }}
|
||||||
|
|
||||||
- name: Build Dependencies
|
- name: Build Dependencies
|
||||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||||
|
|
|
@ -10,13 +10,6 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: macos-13
|
default: macos-13
|
||||||
platform:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: x64
|
|
||||||
gui:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
patches_url:
|
patches_url:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -50,8 +43,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OS: macos
|
OS: macos
|
||||||
GUI_FRAMEWORK: ${{ inputs.gui }}
|
|
||||||
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 }}
|
||||||
|
@ -60,7 +51,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ inputs.platform }}
|
PLATFORM: "x64"
|
||||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||||
HOMEBREW_NO_ANALYTICS: 1
|
HOMEBREW_NO_ANALYTICS: 1
|
||||||
run: |
|
run: |
|
||||||
|
@ -77,12 +68,10 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/deps
|
path: ~/deps
|
||||||
key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.gui }} deps ${{ hashFiles('.github/workflows/scripts/macos/build-dependencies.sh') }}
|
key: ${{ inputs.os }} deps ${{ hashFiles('.github/workflows/scripts/macos/build-dependencies.sh') }}
|
||||||
|
|
||||||
- name: Build Dependencies
|
- name: Build Dependencies
|
||||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||||
env:
|
|
||||||
GUI: ${{ inputs.gui }}
|
|
||||||
run: .github/workflows/scripts/macos/build-dependencies.sh
|
run: .github/workflows/scripts/macos/build-dependencies.sh
|
||||||
|
|
||||||
- name: Download patches
|
- name: Download patches
|
||||||
|
@ -99,8 +88,8 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: .ccache
|
path: .ccache
|
||||||
key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.gui }} ccache ${{ steps.ccache_cache_timestamp.outputs.timestamp }}
|
key: ${{ inputs.os }} ccache ${{ steps.ccache_cache_timestamp.outputs.timestamp }}
|
||||||
restore-keys: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.gui }} ccache
|
restore-keys: ${{ inputs.os }} ccache
|
||||||
|
|
||||||
- name: Generate CMake Files
|
- name: Generate CMake Files
|
||||||
run: |
|
run: |
|
||||||
|
@ -133,7 +122,6 @@ jobs:
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
if: inputs.gui == 'Qt'
|
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: make -j$(getconf _NPROCESSORS_ONLN) unittests
|
run: make -j$(getconf _NPROCESSORS_ONLN) unittests
|
||||||
|
|
||||||
|
@ -149,7 +137,7 @@ jobs:
|
||||||
mv build/pcsx2*/PCSX2.app "$APPNAME.app"
|
mv build/pcsx2*/PCSX2.app "$APPNAME.app"
|
||||||
tar --options xz:compression-level=9 -cvJf "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" "$APPNAME.app"
|
tar --options xz:compression-level=9 -cvJf "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" "$APPNAME.app"
|
||||||
mkdir ci-artifacts
|
mkdir ci-artifacts
|
||||||
cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" ci-artifacts/macOS-${{ inputs.gui }}.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@v3
|
||||||
|
|
|
@ -14,6 +14,5 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/macos_build.yml
|
uses: ./.github/workflows/macos_build.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Qt"
|
jobName: "MacOS Build"
|
||||||
gui: "Qt"
|
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
name: "Linux"
|
name: "Linux"
|
||||||
uses: ./.github/workflows/linux_build_qt.yml
|
uses: ./.github/workflows/linux_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Qt"
|
jobName: "AppImage Build"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
buildAppImage: true
|
buildAppImage: true
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
name: "Linux"
|
name: "Linux"
|
||||||
uses: ./.github/workflows/linux_build_flatpak.yml
|
uses: ./.github/workflows/linux_build_flatpak.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Flatpak"
|
jobName: "Flatpak Build"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
cmakeflags: ""
|
cmakeflags: ""
|
||||||
branch: "stable"
|
branch: "stable"
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
name: "Windows"
|
name: "Windows"
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt
|
jobName: "Windows Build"
|
||||||
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
|
||||||
|
@ -48,8 +48,7 @@ jobs:
|
||||||
name: "MacOS"
|
name: "MacOS"
|
||||||
uses: ./.github/workflows/macos_build.yml
|
uses: ./.github/workflows/macos_build.yml
|
||||||
with:
|
with:
|
||||||
jobName: "Qt"
|
jobName: "MacOS Build"
|
||||||
gui: "Qt"
|
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
# Upload the Artifacts
|
# Upload the Artifacts
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Artifact Naming Scheme:
|
# Artifact Naming Scheme:
|
||||||
# PCSX2-<OS>-<GUI>-[ARCH]-[SIMD]-[pr\[PR_NUM\]]-[title|sha\[SHA|PR_TITLE\]
|
# PCSX2-<OS>-[ARCH]-[SIMD]-[pr\[PR_NUM\]]-[title|sha\[SHA|PR_TITLE\]
|
||||||
# -- limited to 200 chars
|
# -- limited to 200 chars
|
||||||
# Outputs:
|
# Outputs:
|
||||||
# - artifact-name
|
# - artifact-name
|
||||||
|
@ -9,7 +9,6 @@
|
||||||
# Inputs as env-vars
|
# Inputs as env-vars
|
||||||
# OS
|
# OS
|
||||||
# BUILD_SYSTEM
|
# BUILD_SYSTEM
|
||||||
# GUI_FRAMEWORK
|
|
||||||
# ARCH
|
# ARCH
|
||||||
# SIMD
|
# SIMD
|
||||||
# EVENT_NAME
|
# EVENT_NAME
|
||||||
|
@ -20,11 +19,12 @@
|
||||||
NAME=""
|
NAME=""
|
||||||
|
|
||||||
if [ "${OS}" == "macos" ]; then
|
if [ "${OS}" == "macos" ]; then
|
||||||
NAME="PCSX2-${OS}-${GUI_FRAMEWORK}"
|
# MacOS has combined binaries for x64 and ARM64.
|
||||||
|
NAME="PCSX2-${OS}"
|
||||||
elif [[ ("${OS}" == "windows" && "$BUILD_SYSTEM" != "cmake") ]]; then
|
elif [[ ("${OS}" == "windows" && "$BUILD_SYSTEM" != "cmake") ]]; then
|
||||||
NAME="PCSX2-${OS}-${GUI_FRAMEWORK}-${ARCH}-${SIMD}"
|
NAME="PCSX2-${OS}-${ARCH}-${SIMD}"
|
||||||
else
|
else
|
||||||
NAME="PCSX2-${OS}-${GUI_FRAMEWORK}-${ARCH}"
|
NAME="PCSX2-${OS}-${ARCH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add cmake if used to differentate it from msbuild builds
|
# Add cmake if used to differentate it from msbuild builds
|
||||||
|
|
|
@ -13,11 +13,11 @@ for dir_name in os.listdir(scan_dir):
|
||||||
asset_name += "-macos"
|
asset_name += "-macos"
|
||||||
elif "linux" in dir_name.lower():
|
elif "linux" in dir_name.lower():
|
||||||
if "flatpak" in dir_name.lower():
|
if "flatpak" in dir_name.lower():
|
||||||
asset_name += "-linux-Flatpak-64bit"
|
asset_name += "-linux-flatpak-x64"
|
||||||
else:
|
else:
|
||||||
asset_name += "-linux-AppImage-64bit"
|
asset_name += "-linux-appimage-x64"
|
||||||
elif "windows" in dir_name.lower():
|
elif "windows" in dir_name.lower():
|
||||||
asset_name += "-windows-64bit"
|
asset_name += "-windows-x64"
|
||||||
else:
|
else:
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -26,8 +26,6 @@ for dir_name in os.listdir(scan_dir):
|
||||||
elif "sse4" in dir_name.lower():
|
elif "sse4" in dir_name.lower():
|
||||||
asset_name += "-SSE4"
|
asset_name += "-SSE4"
|
||||||
|
|
||||||
asset_name += "-Qt"
|
|
||||||
|
|
||||||
if "symbols" in dir_name.lower():
|
if "symbols" in dir_name.lower():
|
||||||
asset_name += "-symbols"
|
asset_name += "-symbols"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt
|
jobName: "MSVC SSE4"
|
||||||
configuration: Release
|
configuration: Release
|
||||||
simd: "SSE4"
|
simd: "SSE4"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt
|
jobName: "MSVC AVX2"
|
||||||
configuration: Release AVX2
|
configuration: Release AVX2
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt
|
jobName: "CMake MSVC"
|
||||||
configuration: CMake
|
configuration: CMake
|
||||||
buildSystem: cmake
|
buildSystem: cmake
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -57,7 +57,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt Clang
|
jobName: "Clang SSE4"
|
||||||
configuration: Release Clang
|
configuration: Release Clang
|
||||||
simd: "SSE4"
|
simd: "SSE4"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -68,7 +68,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt Clang
|
jobName: "Clang AVX2"
|
||||||
configuration: Release Clang AVX2
|
configuration: Release Clang AVX2
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ jobs:
|
||||||
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
if: github.repository != 'PCSX2/pcsx2' || github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/windows_build_qt.yml
|
uses: ./.github/workflows/windows_build_qt.yml
|
||||||
with:
|
with:
|
||||||
jobName: Qt Clang
|
jobName: "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
|
||||||
|
|
|
@ -63,7 +63,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
OS: windows
|
OS: windows
|
||||||
BUILD_SYSTEM: ${{ inputs.buildSystem }}
|
BUILD_SYSTEM: ${{ inputs.buildSystem }}
|
||||||
GUI_FRAMEWORK: Qt
|
|
||||||
ARCH: ${{ inputs.platform }}
|
ARCH: ${{ inputs.platform }}
|
||||||
SIMD: ${{ inputs.simd }}
|
SIMD: ${{ inputs.simd }}
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
|
|
Loading…
Reference in New Issue