Merge pull request #4 from Xyene/linux-sdl-fixups

Small fixups for Linux SDL builder
This commit is contained in:
Dan Balasescu 2020-05-07 11:02:31 +09:00 committed by GitHub
commit 4d11cf48a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -7,24 +7,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check out SDL sources
run: |
hg clone https://hg.libsdl.org/SDL /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 sdl2-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
- 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 sdl2-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
- name: Create pull request
uses: peter-evans/create-pull-request@v2
with:
commit-message: 'Update Linux SDL binaries'
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

View file

@ -2,8 +2,8 @@
set -euf -o pipefail
hg clone https://hg.libsdl.org/SDL SDL
cd SDL
cd /src
rm -rf build
mkdir build
cd build
../configure --prefix=/io