Skip to content

Commit

Permalink
Merge pull request #3 from negativeExponent/px68k-cores
Browse files Browse the repository at this point in the history
Px68k cores
  • Loading branch information
negativeExponent authored Aug 8, 2024
2 parents fd14cbe + 67a1e1b commit 9067d06
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/linux64_px68k_c68k.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: px68k-libretro (c68k cpu core) Linux x86_64

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/px68k-libretro.git && cd px68k-libretro && git submodule update --init
- name: Check gcc version
run: |
gcc --version
g++ --version
- name: Build libretro core
working-directory: px68k-libretro
run: |
make -j8 C68K=1
wget https://raw.githubusercontent.com/libretro/libretro-super/master/retrolink.sh && chmod +x retrolink.sh && ./retrolink.sh px68k_libretro.so
zip -9 ../px68k-libretro_c68k_linux-x86_64.zip px68k_libretro.so
- name: Create new release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: Linux_64-bit
file: px68k-libretro_c68k_linux-x86_64.zip
overwrite: true
37 changes: 37 additions & 0 deletions .github/workflows/linux64_px68k_musashi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: px68k-libretro (MUSASHI cpu core) Linux x86_64

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/px68k-libretro.git && cd px68k-libretro && git submodule update --init
- name: Check gcc version
run: |
gcc --version
g++ --version
- name: Build libretro core
working-directory: px68k-libretro
run: |
make -j8 MUSASHI=1
wget https://raw.githubusercontent.com/libretro/libretro-super/master/retrolink.sh && chmod +x retrolink.sh && ./retrolink.sh px68k_libretro.so
zip -9 ../px68k-libretro_musashi_linux-x86_64.zip px68k_libretro.so
- name: Create new release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: Linux_64-bit
file: px68k-libretro_musashi_linux-x86_64.zip
overwrite: true
38 changes: 38 additions & 0 deletions .github/workflows/win64_px68k_c68k.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: px68k-libretro (C68K CPU) Windows x86_64

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:
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/px68k-libretro.git && cd px68k-libretro && git submodule update --init
- name: Check gcc version
run: |
/usr/bin/x86_64-w64-mingw32-gcc --version
/usr/bin/x86_64-w64-mingw32-g++ --version
- name: Build libretro core
working-directory: px68k-libretro
run: |
make -f Makefile.libretro CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ platform=win -j8 C68K=1
strip -s px68k_libretro.dll
zip -9 ../px68k-libretro_c68k_windows-x86_64.zip px68k_libretro.dll
- name: Create new release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: Windows_64-bit
file: px68k-libretro_c68k_windows-x86_64.zip
overwrite: true
38 changes: 38 additions & 0 deletions .github/workflows/win64_px68k_musashi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: px68k-libretro (MUSASHI CPU) Windows x86_64

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:
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/px68k-libretro.git && cd px68k-libretro && git submodule update --init
- name: Check gcc version
run: |
/usr/bin/x86_64-w64-mingw32-gcc --version
/usr/bin/x86_64-w64-mingw32-g++ --version
- name: Build libretro core
working-directory: px68k-libretro
run: |
make -f Makefile.libretro CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ platform=win -j8 C68K=1
strip -s px68k_libretro.dll
zip -9 ../px68k-libretro_musashi_windows-x86_64.zip px68k_libretro.dll
- name: Create new release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: Windows_64-bit
file: px68k-libretro_musashi_windows-x86_64.zip
overwrite: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ Automated builds of RetroArch and libretro cores for Windows and Linux 64-bit (a
| [FCEUmm](https://github.com/negativeExponent/libretro-fceumm) | [![libretro-fceumm Windows x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/win64_fceumm.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Windows_64-bit/fceumm_libretro.dll.zip) |[![libretro-fceumm libretro Linux x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/linux64_fceumm.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Linux_64-bit/fceumm_libretro.so.zip) |
| [Mesen (Mesen-X)](https://github.com/NovaSquirrel/Mesen-X) | [![Mesen-X-libretro Windows x86_64 (Msys2)](https://github.com/negativeExponent/libretro_builds/actions/workflows/win64_mesen_msys2.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Windows_64-bit/mesen_libretro.dll.zip) |[![mesen-libretro libretro Linux x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/linux64_mesen.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Linux_64-bit/mesen_libretro.so.zip) |
| [PX68K](https://github.com/negativeExponent/px68k-libretro) | [![px68k-libretro Windows x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/win64_px68k.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Windows_64-bit/px68k_libretro.dll.zip) |[![px68k-libretro libretro Linux x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/linux64_px68k.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Linux_64-bit/px68k_libretro.so.zip) |
| [PX68K (C68K)](https://github.com/negativeExponent/px68k-libretro) | [![px68k-libretro (c68k) Windows x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/win64_px68k_c68k.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Windows_64-bit/px68k-libretro_c68k_windows-x86_64.zip) |[![px68k-libretro (c68k) Linux x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/linux64_px68k.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Linux_64-bit/px68k-libretro_c68k_linux-x86_64.zip) |
| [PX68K (MUSASHI)](https://github.com/negativeExponent/px68k-libretro) | [![px68k-libretro (musashi) Windows x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/win64_px68k_c68k.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Windows_64-bit/px68k-libretro_musashi_windows-x86_64.zip) |[![px68k-libretro (musashi) Linux x86_64](https://github.com/negativeExponent/libretro_builds/actions/workflows/linux64_px68k.yml/badge.svg)](https://github.com/negativeExponent/libretro_builds/releases/download/Linux_64-bit/px68k-libretro_musashi_linux-x86_64.zip) |

0 comments on commit 9067d06

Please sign in to comment.