mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-22 23:15:35 +00:00
Add macOS native binary build workflow
This commit is contained in:
parent
4d11cf48a9
commit
9289a3fd82
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -1,8 +1,33 @@
|
|||
name: build-linux
|
||||
name: build-native
|
||||
on: [push]
|
||||
# schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
jobs:
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: install mercurial
|
||||
run: brew install hg
|
||||
- name: Check out SDL sources
|
||||
run: |
|
||||
hg clone https://hg.libsdl.org/SDL /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
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
Loading…
Reference in a new issue