Skip to content

Commit

Permalink
Libretro: add build/release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Aug 8, 2024
1 parent ea7a910 commit 9127cf5
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/libretro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Libretro Builds

on:
workflow_dispatch:

jobs:
build-windows:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
- name: Install build tools
run: pacman -S mingw-w64-x86_64-{gcc,pkg-config} make --noconfirm
shell: msys2 {0}
- name: Compile
run: |
make libretro -j$(nproc)
shell: msys2 {0}
working-directory: ${{ github.workspace }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-libretro-windows
path: |
noods_libretro.dll
noods_libretro.info
build-mac:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
make libretro -j$(sysctl -n hw.logicalcpu)
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-libretro-mac
path: |
noods_libretro.dylib
noods_libretro.info
build-linux:
runs-on: ubuntu-latest

steps:
- name: Install build tools
run: |
sudo apt update
sudo apt install gcc -y
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
git config --global protocol.file.allow always
make libretro -j$(nproc)
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-libretro-linux
path: |
noods_libretro.so
noods_libretro.info
update-release:
runs-on: ubuntu-latest
needs: [build-windows, build-mac, build-linux]

steps:
- name: Delete old release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: release
- name: Get artifacts
uses: actions/download-artifact@v2
- name: Package artifacts
run: for i in ./*; do zip -r -j ${i}.zip $i; done
- name: Create new release
uses: ncipollo/release-action@v1
with:
name: Rolling Release
body: Automatically updated builds
artifacts: "*.zip"
tag: release

0 comments on commit 9127cf5

Please sign in to comment.