mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-05 13:25:34 +00:00
e2fb4179bd
This fix github actions build issues since SDL migration to github.
61 lines
2 KiB
YAML
61 lines
2 KiB
YAML
name: build-native
|
|
on: [push]
|
|
# schedule:
|
|
# - cron: '0 0 * * *'
|
|
jobs:
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Check out SDL sources
|
|
run: |
|
|
git clone --depth 1 --branch release-2.0.14 https://github.com/libsdl-org/SDL.git /tmp/SDL
|
|
- name: Build binaries
|
|
run: |
|
|
cd /tmp/SDL
|
|
./configure
|
|
make
|
|
make install
|
|
- name: copy built binary
|
|
run: cp /usr/local/lib/libSDL2-2.0.0.dylib native/osx-x64/libSDL2.dylib
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@v2
|
|
with:
|
|
commit-message: Update macOS SDL binaries
|
|
title: Update macOS SDL binaries
|
|
body: This PR has been auto-generated to update the macOS SDL binaries.
|
|
branch: update-macos-binaries
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Check out SDL sources
|
|
run: |
|
|
git clone --depth 1 --branch release-2.0.14 https://github.com/libsdl-org/SDL.git /tmp/SDL
|
|
- name: Build i386 binaries
|
|
run: |
|
|
mkdir /tmp/i386
|
|
cd linux-build
|
|
docker build -t sdl2-i386 -f Dockerfile.i386 .
|
|
docker run -v `pwd`/compile:/entry -v /tmp/i386:/io -v /tmp/SDL:/src sdl2-i386
|
|
cp /tmp/i386/lib/libSDL2-2.0.so.0 ../native/linux-x86/libSDL2.so
|
|
- name: Build amd64 binaries
|
|
run: |
|
|
mkdir /tmp/amd64
|
|
cd linux-build
|
|
docker build -t sdl2-amd64 -f Dockerfile.amd64 .
|
|
docker run -v `pwd`/compile:/entry -v /tmp/amd64:/io -v /tmp/SDL:/src sdl2-amd64
|
|
cp /tmp/amd64/lib/libSDL2-2.0.so.0 ../native/linux-x64/libSDL2.so
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@v2
|
|
with:
|
|
commit-message: Update Linux SDL binaries
|
|
title: Update Linux SDL binaries
|
|
body: This PR has been auto-generated to update the Linux SDL binaries.
|
|
branch: update-linux-binaries
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|