-
-
Notifications
You must be signed in to change notification settings - Fork 48
92 lines (90 loc) · 2.36 KB
/
gearsystem.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Gearsystem 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
# 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
# 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/Gearsystem.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 Gearsystem.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/Gearsystem.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
run: |
cd platforms/bsd
gmake