diff --git a/.github/workflows/linux_build_qt.yml b/.github/workflows/linux_build_qt.yml index 769520e3ca..b2ef04b345 100644 --- a/.github/workflows/linux_build_qt.yml +++ b/.github/workflows/linux_build_qt.yml @@ -32,6 +32,10 @@ on: required: false type: string default: "" + cheats_url: + required: false + type: string + default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download jobs: build_linux: @@ -97,6 +101,11 @@ jobs: if: steps.cache-deps.outputs.cache-hit != 'true' run: .github/workflows/scripts/linux/build-dependencies-qt.sh + - name: Download cheats + run: | + cd bin/resources + aria2c -Z "${{ inputs.cheats_url }}/cheats_ni.zip" "${{ inputs.cheats_url }}/cheats_ws.zip" + - name: Generate CMake env: COMPILER: ${{ inputs.compiler }} diff --git a/.github/workflows/linux_build_wx.yml b/.github/workflows/linux_build_wx.yml index 55f8382257..695b26be29 100644 --- a/.github/workflows/linux_build_wx.yml +++ b/.github/workflows/linux_build_wx.yml @@ -28,6 +28,10 @@ on: required: false type: string default: "" + cheats_url: + required: false + type: string + default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download jobs: build_linux: @@ -115,6 +119,11 @@ jobs: fi sudo make -C 3rdparty/${{ env.SDL }} install + - name: Download cheats + run: | + cd bin/resources + aria2c -Z "${{ inputs.cheats_url }}/cheats_ni.zip" "${{ inputs.cheats_url }}/cheats_ws.zip" + - name: Generate CMake env: PLATFORM: ${{ inputs.platform }} diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml index 20f8cff50d..de17e8a0b1 100644 --- a/.github/workflows/macos_build.yml +++ b/.github/workflows/macos_build.yml @@ -17,6 +17,10 @@ on: gui: required: true type: string + cheats_url: + required: false + type: string + default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download jobs: build_macos: @@ -79,6 +83,11 @@ jobs: GUI: ${{ inputs.gui }} run: .github/workflows/scripts/macos/build-dependencies.sh + - name: Download cheats + run: | + cd bin/resources + aria2c -Z "${{ inputs.cheats_url }}/cheats_ni.zip" "${{ inputs.cheats_url }}/cheats_ws.zip" + - name: Generate CMake Files run: | QT_BUILD=$([ "${{ inputs.gui }}" == "Qt" ] && echo "ON" || echo "OFF") diff --git a/.github/workflows/windows_build_qt.yml b/.github/workflows/windows_build_qt.yml index db219ceeff..13accc0675 100644 --- a/.github/workflows/windows_build_qt.yml +++ b/.github/workflows/windows_build_qt.yml @@ -29,6 +29,10 @@ on: required: false type: string default: https://github.com/PCSX2/pcsx2-windows-dependencies/releases/download/2022-07-24/qt-6.3.1-x64.7z + cheats_url: + required: false + type: string + default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download jobs: build_windows_qt: @@ -77,6 +81,12 @@ jobs: 7z x qt-*-x64.7z del qt-*-x64.7z + - name: Download cheats + shell: cmd + run: | + cd bin/resources + aria2c -Z "${{ inputs.cheats_url }}/cheats_ni.zip" "${{ inputs.cheats_url }}/cheats_ws.zip" + - name: Build PCSX2 shell: cmd run: | diff --git a/.github/workflows/windows_build_wx.yml b/.github/workflows/windows_build_wx.yml index 40dae457d8..2360f3a9e7 100644 --- a/.github/workflows/windows_build_wx.yml +++ b/.github/workflows/windows_build_wx.yml @@ -25,6 +25,10 @@ on: configuration: required: true type: string + cheats_url: + required: false + type: string + default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download jobs: build_windows_wx: @@ -71,6 +75,12 @@ jobs: if: inputs.configuration != 'CMake' uses: microsoft/setup-msbuild@v1 + - name: Download cheats + shell: cmd + run: | + cd bin/resources + aria2c -Z "${{ inputs.cheats_url }}/cheats_ni.zip" "${{ inputs.cheats_url }}/cheats_ws.zip" + - name: Generate CMake if: inputs.configuration == 'CMake' id: cmake diff --git a/bin/resources/cheats_ni.zip b/bin/resources/cheats_ni.zip deleted file mode 100644 index 1ae8b2caea..0000000000 Binary files a/bin/resources/cheats_ni.zip and /dev/null differ diff --git a/bin/resources/cheats_ws.zip b/bin/resources/cheats_ws.zip deleted file mode 100644 index 23d8271a17..0000000000 Binary files a/bin/resources/cheats_ws.zip and /dev/null differ