Skip to content

Commit

Permalink
added base CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelwiss committed Aug 17, 2024
1 parent d7fead6 commit 437d1c7
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy_retro_android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Build Android (Libretro)
on: [push,pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
36 changes: 36 additions & 0 deletions .github/workflows/deploy_retro_ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build iOS (Libretro)
on: [push,pull_request]
jobs:
build-and-deploy:
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Configure & Build 🔧
run: |
mkdir build
cd build
cmake -GXcode -DCMAKE_SYSTEM_NAME=iOS ../
cmake --build . --config Release
mkdir Payload
cp -R libSkyEmuRetro.dylib Payload/SkyEmu.app
zip -r SkyEmuRetro.ipa Payload
- name: GH Release 🚀
# You may pin to the exact commit or the version.
uses: actions/upload-artifact@v2
with:
name: iOSRelease (Libretro)
path: build/SkyEmu.ipa
#uses: softprops/[email protected]
#with:
# # Note-worthy description of changes in release
# # body: # optional
# # Path to load note-worthy description of changes in release from
# # body_path: # optional
# # Gives the release a custom name. Defaults to tag name
# name: LinuxRelease
# # Identify the release as a prerelease. Defaults to false
# prerelease: True
# # Newline-delimited list of path globs for asset files to upload
# files: build/bin/*

33 changes: 33 additions & 0 deletions .github/workflows/deploy_retro_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Linux (Libretro)
on: [push,pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Configure & Build 🔧
run: |
mkdir build
cd build
cmake .. && cmake --build .
- name: GH Release 🚀
# You may pin to the exact commit or the version.
uses: actions/upload-artifact@v2
with:
name: LinuxRelease
path: libSkyEmuRetro.so
#uses: softprops/[email protected]
#with:
# # Note-worthy description of changes in release
# # body: # optional
# # Path to load note-worthy description of changes in release from
# # body_path: # optional
# # Gives the release a custom name. Defaults to tag name
# name: LinuxRelease
# # Identify the release as a prerelease. Defaults to false
# prerelease: True
# # Newline-delimited list of path globs for asset files to upload
# files: build/bin/*

41 changes: 41 additions & 0 deletions .github/workflows/deploy_retro_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build macOS (Libretro)
on: [push,pull_request]
jobs:
build-and-deploy:
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Configure & Build 🔧
run: |
mkdir build
cd build
cmake .. && cmake --build .
- name: Build DMG
run: |
cd build
brew install graphicsmagick imagemagick
pip install setuptools
npm install --global create-dmg
create-dmg --dmg-title=SkyEmu 'libSkyEmuRetro.dylib' || true
ls
mv SkyEmu*.dmg "SkyEmu.dmg"
- name: GH Release 🚀
# You may pin to the exact commit or the version.
uses: actions/upload-artifact@v2
with:
name: MacOSRelease
path: build/SkyEmu.dmg
#uses: softprops/[email protected]
#with:
# # Note-worthy description of changes in release
# # body: # optional
# # Path to load note-worthy description of changes in release from
# # body_path: # optional
# # Gives the release a custom name. Defaults to tag name
# name: LinuxRelease
# # Identify the release as a prerelease. Defaults to false
# prerelease: True
# # Newline-delimited list of path globs for asset files to upload
# files: build/bin/*

38 changes: 38 additions & 0 deletions .github/workflows/deploy_retro_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Windows (Libretro)
on: [push,pull_request]
jobs:
build-and-deploy:
runs-on: windows-2019
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Get latest CMake and ninja
# Using 'latest' branch, the most recent CMake and ninja are installed.
uses: lukka/get-cmake@latest

- name: Build 🔧
run: |
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.19041.0 ..
cmake --build . --config Release
- name: GH Release 🚀
# You may pin to the exact commit or the version.
uses: actions/upload-artifact@v2
with:
name: WindowsRelease
path: build/libSkyEmuRetro.dll
#uses: softprops/[email protected]
#with:
# # Note-worthy description of changes in release
# # body: # optional
# # Path to load note-worthy description of changes in release from
# # body_path: # optional
# # Gives the release a custom name. Defaults to tag name
# name: LinuxRelease
# # Identify the release as a prerelease. Defaults to false
# prerelease: True
# # Newline-delimited list of path globs for asset files to upload
# files: build/bin/*

0 comments on commit 437d1c7

Please sign in to comment.