FCEUmm Next (Libretro) #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FCEUmm Next (Libretro) | |
on: | |
#push: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 2 * * *' # run at 2 AM UTC | |
watch: # this is a hack that lets repo owners trigger a build by starring | |
types: [started] | |
if: github.actor == github.event.repository.owner.login | |
jobs: | |
linux: | |
name: Build for Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install needed packages | |
run: sudo apt install wget git build-essential | |
- name: Checkout source | |
run: git clone https://github.com/negativeExponent/libretro-fceumm.git libretro-fceumm_next && cd libretro-fceumm_next | |
- name: Build libretro core | |
working-directory: libretro-fceumm_next | |
run: | | |
make V=1 -j8 | |
wget https://raw.githubusercontent.com/libretro/libretro-super/master/retrolink.sh && chmod +x retrolink.sh && ./retrolink.sh fceumm_next_libretro.so | |
zip -9 ../fceumm_next_libretro.so.zip fceumm_next_libretro.so | |
- name: Create new release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: Linux_64-bit | |
file: fceumm_next_libretro.so.zip | |
overwrite: true | |
windows: | |
name: Build for Windows via cross-compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install needed packages | |
run: sudo apt install wget git build-essential mingw-w64 mingw-w64-x86-64-dev mingw-w64-tools | |
- name: Checkout source | |
run: git clone https://github.com/negativeExponent/libretro-fceumm.git libretro-fceumm_next && cd libretro-fceumm_next | |
- name: Build libretro core | |
working-directory: libretro-fceumm_next | |
run: | | |
make -f Makefile.libretro V=1 CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ platform=win -j8 | |
strip -s fceumm_next_libretro.dll | |
zip -9 ../fceumm_next_libretro.dll.zip fceumm_next_libretro.dll | |
- name: Create new release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: Windows_64-bit | |
file: fceumm_next_libretro.dll.zip | |
overwrite: true |