Update SDL and centralize versions

This commit is contained in:
dcvz 2024-06-09 00:47:15 +02:00
parent 2607c8098f
commit c1a218ce63

View file

@ -1,6 +1,15 @@
name: validate name: validate
on: on:
workflow_call: workflow_call:
inputs:
SDL2_VERSION:
type: string
required: false
default: '2.28.5'
N64RECOMP_COMMIT:
type: string
required: false
default: '2a2df89349ff25a3afb3a09617deb3a166efe2f3'
secrets: secrets:
ZRE_REPO_WITH_PAT: ZRE_REPO_WITH_PAT:
required: true required: true
@ -37,9 +46,9 @@ jobs:
# Enable ccache # Enable ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
wget https://github.com/libsdl-org/SDL/releases/download/release-2.26.1/SDL2-2.26.1.tar.gz wget https://github.com/libsdl-org/SDL/releases/download/release-${{ inputs.SDL2_VERSION }}/SDL2-${{ inputs.SDL2_VERSION }}.tar.gz
tar -xzf SDL2-2.26.1.tar.gz tar -xzf SDL2-${{ inputs.SDL2_VERSION }}.tar.gz
cd SDL2-2.26.1 cd SDL2-${{ inputs.SDL2_VERSION }}
./configure ./configure
make -j 10 make -j 10
sudo make install sudo make install
@ -54,7 +63,7 @@ jobs:
run: | run: |
git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules N64RecompSource git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules N64RecompSource
cd N64RecompSource cd N64RecompSource
git checkout 2a2df89349ff25a3afb3a09617deb3a166efe2f3 git checkout ${{ inputs.N64RECOMP_COMMIT }}
git submodule update --init --recursive git submodule update --init --recursive
# enable ccache # enable ccache
@ -128,7 +137,7 @@ jobs:
run: | run: |
git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules N64RecompSource git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules N64RecompSource
cd N64RecompSource cd N64RecompSource
git checkout 2a2df89349ff25a3afb3a09617deb3a166efe2f3 git checkout ${{ inputs.N64RECOMP_COMMIT }}
git submodule update --init --recursive git submodule update --init --recursive
# enable ccache # enable ccache