mirror of https://github.com/PCSX2/pcsx2.git
Workflows: Download cheats from pcsx2_patches repo on build time
This commit is contained in:
parent
ef0de38624
commit
b191126f36
|
@ -32,6 +32,10 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
cheats_url:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux:
|
build_linux:
|
||||||
|
@ -97,6 +101,11 @@ jobs:
|
||||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||||
run: .github/workflows/scripts/linux/build-dependencies-qt.sh
|
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
|
- name: Generate CMake
|
||||||
env:
|
env:
|
||||||
COMPILER: ${{ inputs.compiler }}
|
COMPILER: ${{ inputs.compiler }}
|
||||||
|
|
|
@ -28,6 +28,10 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
cheats_url:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux:
|
build_linux:
|
||||||
|
@ -115,6 +119,11 @@ jobs:
|
||||||
fi
|
fi
|
||||||
sudo make -C 3rdparty/${{ env.SDL }} install
|
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
|
- name: Generate CMake
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ inputs.platform }}
|
PLATFORM: ${{ inputs.platform }}
|
||||||
|
|
|
@ -17,6 +17,10 @@ on:
|
||||||
gui:
|
gui:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
cheats_url:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_macos:
|
build_macos:
|
||||||
|
@ -79,6 +83,11 @@ jobs:
|
||||||
GUI: ${{ inputs.gui }}
|
GUI: ${{ inputs.gui }}
|
||||||
run: .github/workflows/scripts/macos/build-dependencies.sh
|
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
|
- name: Generate CMake Files
|
||||||
run: |
|
run: |
|
||||||
QT_BUILD=$([ "${{ inputs.gui }}" == "Qt" ] && echo "ON" || echo "OFF")
|
QT_BUILD=$([ "${{ inputs.gui }}" == "Qt" ] && echo "ON" || echo "OFF")
|
||||||
|
|
|
@ -29,6 +29,10 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: https://github.com/PCSX2/pcsx2-windows-dependencies/releases/download/2022-07-24/qt-6.3.1-x64.7z
|
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:
|
jobs:
|
||||||
build_windows_qt:
|
build_windows_qt:
|
||||||
|
@ -77,6 +81,12 @@ jobs:
|
||||||
7z x qt-*-x64.7z
|
7z x qt-*-x64.7z
|
||||||
del 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
|
- name: Build PCSX2
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -25,6 +25,10 @@ on:
|
||||||
configuration:
|
configuration:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
cheats_url:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: https://github.com/PCSX2/pcsx2_patches/releases/latest/download
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_windows_wx:
|
build_windows_wx:
|
||||||
|
@ -71,6 +75,12 @@ jobs:
|
||||||
if: inputs.configuration != 'CMake'
|
if: inputs.configuration != 'CMake'
|
||||||
uses: microsoft/setup-msbuild@v1
|
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
|
- name: Generate CMake
|
||||||
if: inputs.configuration == 'CMake'
|
if: inputs.configuration == 'CMake'
|
||||||
id: cmake
|
id: cmake
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue