Skip to content

Update gearboy.yml #346

Update gearboy.yml

Update gearboy.yml #346

Workflow file for this run

name: Gearboy CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
linux:
name: Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update OS
run: sudo apt-get update -qq
- name: Install dependencies
run: sudo apt-get install -y libsdl2-dev libglew-dev libgtk-3-dev
- name: make
run: make
working-directory: platforms/linux
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: Linux (Ubuntu) binary
path: platforms/linux/gearboy
libretro:
name: Libretro (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: make
run: make
working-directory: platforms/libretro
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: Libretro (Linux) core
path: platforms/libretro/gearboy_libretro.so
macos:
name: macOS
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: brew install sdl2
- name: make
run: make dist
working-directory: platforms/macos
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: macOS App bundle
path: platforms/macos/Gearboy.app
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Get git version
id: gitversion
shell: bash
run: echo "gitversion=$(git describe --abbrev=7 --dirty --always --tags)" >> $GITHUB_OUTPUT
- name: msbuild
run: msbuild Gearboy.sln /t:Clean,Build /p:EmulatorBuild="${{ steps.gitversion.outputs.gitversion }}" /p:Configuration=Release
working-directory: platforms/windows
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: Windows binary
path: platforms/windows/release/Gearboy.exe
bsd:
name: FreeBSD
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: make
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: pkg install -y git gmake pkgconf SDL2 glew lang/gcc gtk3
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: BSD (FreeBSD) binary
path: platforms/bsd/gearboy
run: |
cd platforms/bsd
gmake