mirror of https://github.com/stella-emu/stella.git
Attempt to fix auto-builds for SDL3 (not yet working for macOS).
This commit is contained in:
parent
d18bde79a3
commit
75d4cff7f9
|
@ -14,10 +14,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- name: Install SDL2
|
- name: Install SDL3
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libsdl2-dev
|
sudo apt-get install libsdl3-dev
|
||||||
- name: Build Stella
|
- name: Build Stella
|
||||||
run: |
|
run: |
|
||||||
./configure && make -j2 all
|
./configure && make -j2 all
|
||||||
|
@ -25,17 +25,19 @@ jobs:
|
||||||
macos:
|
macos:
|
||||||
name: macOS
|
name: macOS
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
env:
|
||||||
|
SDL3_version: 3.2.14
|
||||||
steps:
|
steps:
|
||||||
- uses: maxim-lobanov/setup-xcode@v1
|
- uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: '16.2'
|
xcode-version: '16.2'
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- name: Install SDL2
|
- name: Install SDL3
|
||||||
run: |
|
run: |
|
||||||
curl https://www.libsdl.org/release/SDL2-2.26.0.tar.gz | tar xzf -
|
curl https://www.libsdl.org/release/SDL3-$SDL3_version.tar.gz | tar xzf -
|
||||||
mkdir SDL2-2.26.0/build
|
mkdir SDL3-$SDL3_version/build
|
||||||
cd SDL2-2.26.0/build
|
cd SDL3-$SDL3_version/build
|
||||||
../configure && make -j3 && sudo make install
|
../configure && make -j3 && sudo make install
|
||||||
- name: Build Stella
|
- name: Build Stella
|
||||||
run: |
|
run: |
|
||||||
|
@ -49,19 +51,19 @@ jobs:
|
||||||
platform: [x64]
|
platform: [x64]
|
||||||
env:
|
env:
|
||||||
Platform: ${{ matrix.platform }}
|
Platform: ${{ matrix.platform }}
|
||||||
SDL2_version: 2.26.0
|
SDL3_version: 3.2.14
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- name: Set up MSBUILD
|
- name: Set up MSBUILD
|
||||||
uses: microsoft/setup-msbuild@34cfbaee7f672c76950673338facd8a73f637506
|
uses: microsoft/setup-msbuild@34cfbaee7f672c76950673338facd8a73f637506
|
||||||
- name: Install SDL2
|
- name: Install SDL3
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
curl -o "C:\SDL2-devel.zip" "https://www.libsdl.org/release/SDL2-devel-%SDL2_version%-VC.zip"
|
curl -o "C:\SDL3-devel.zip" "https://www.libsdl.org/release/SDL3-devel-%SDL3_version%-VC.zip"
|
||||||
7z x "C:\SDL2-devel.zip" -o"C:\"
|
7z x "C:\SDL3-devel.zip" -o"C:\"
|
||||||
xcopy /S "C:\SDL2-%SDL2_version%\include" src\common
|
xcopy /S "C:\SDL3-%SDL3_version%\include" src\common
|
||||||
if %Platform%==x64 xcopy /S "C:\SDL2-%SDL2_version%\lib\x64" src\os\windows
|
if %Platform%==x64 xcopy /S "C:\SDL3-%SDL3_version%\lib\x64" src\os\windows
|
||||||
|
|
||||||
- name: Build Stella
|
- name: Build Stella
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue