2022-10-10 17:15:55 +00:00
|
|
|
---
|
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2022-10-10 21:03:56 +00:00
|
|
|
push:
|
2022-10-10 17:15:55 +00:00
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repository
|
2022-10-13 09:26:37 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-11-24 19:34:15 +00:00
|
|
|
- name: Install SDL2
|
2022-10-10 17:15:55 +00:00
|
|
|
run: |
|
2022-10-13 12:01:14 +00:00
|
|
|
sudo apt-get update
|
2022-11-24 19:34:15 +00:00
|
|
|
sudo apt-get install libsdl2-dev
|
2022-10-10 17:15:55 +00:00
|
|
|
- name: Build Stella
|
|
|
|
run: |
|
|
|
|
./configure && make -j2 all
|
|
|
|
|
|
|
|
macos:
|
|
|
|
name: macOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repository
|
2022-10-13 09:26:37 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-10-10 17:15:55 +00:00
|
|
|
- name: Install SDL2
|
|
|
|
run: |
|
2022-11-24 19:05:09 +00:00
|
|
|
curl https://www.libsdl.org/release/SDL2-2.26.0.tar.gz | tar xzf -
|
|
|
|
mkdir SDL2-2.26.0/build
|
|
|
|
cd SDL2-2.26.0/build
|
2022-10-10 17:15:55 +00:00
|
|
|
../configure && make -j3 && sudo make install
|
|
|
|
- name: Build Stella
|
|
|
|
run: |
|
|
|
|
./configure && make -j3 all
|
2022-10-10 17:58:03 +00:00
|
|
|
|
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-05-08 22:17:40 +00:00
|
|
|
platform: [x64]
|
2022-10-10 17:58:03 +00:00
|
|
|
env:
|
|
|
|
Platform: ${{ matrix.platform }}
|
2022-11-24 19:05:09 +00:00
|
|
|
SDL2_version: 2.26.0
|
2022-10-10 17:58:03 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out the repository
|
2022-10-13 09:26:37 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-10-10 17:58:03 +00:00
|
|
|
- name: Set up MSBUILD
|
2022-10-13 09:26:37 +00:00
|
|
|
uses: microsoft/setup-msbuild@34cfbaee7f672c76950673338facd8a73f637506
|
2022-10-10 17:58:03 +00:00
|
|
|
- name: Install SDL2
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
curl -o "C:\SDL2-devel.zip" "https://www.libsdl.org/release/SDL2-devel-%SDL2_version%-VC.zip"
|
|
|
|
7z x "C:\SDL2-devel.zip" -o"C:\"
|
|
|
|
xcopy /S "C:\SDL2-%SDL2_version%\include" src\common
|
|
|
|
if %Platform%==x64 xcopy /S "C:\SDL2-%SDL2_version%\lib\x64" src\os\windows
|
2024-05-08 22:17:40 +00:00
|
|
|
|
2022-10-10 17:58:03 +00:00
|
|
|
- name: Build Stella
|
|
|
|
run: |
|
|
|
|
msbuild src\os\windows\Stella.sln
|