forked from pepone42/gngeo
-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (67 loc) · 1.97 KB
/
build-tests.yaml
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
name: Build and Test
on:
push:
branches-ignore:
- 'ngdevkit'
jobs:
linux:
name: "Linux build"
runs-on: ubuntu-latest
env:
BUILD_PARAMS: ""
PREFIX: "/tmp/build/linux"
PKGDATADIR: "$PREFIX/share/ngdevkit-gngeo"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo add-apt-repository -y ppa:dciabrin/ngdevkit
sudo apt-get update -y
sudo apt-get install -y emudbg-dev autoconf-archive libsdl2-dev libglew-dev
- name: Build
run: ./.github/scripts/build.sh
win:
name: "Windows native MSYS2 build"
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install:
git autoconf autoconf-archive automake make
mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-libtool
mingw-w64-ucrt-x86_64-pkgconf mingw-w64-ucrt-x86_64-SDL2
mingw-w64-ucrt-x86_64-glew
- name: Install ngdevkit dependencies
run: |
echo -e "[ngdevkit]\nSigLevel = Optional TrustAll\nServer = https://dciabrin.net/msys2-ngdevkit/\$arch" >> /etc/pacman.conf
pacman -Sy
pacman -S --noconfirm mingw-w64-ucrt-x86_64-emudbg
- name: Build
run: ./.github/scripts/build-msys2.sh
macos:
name: "macOS build"
runs-on: macos-latest
env:
BUILD_PARAMS: ""
PREFIX: "/tmp/build/macos"
PKGDATADIR: "$PREFIX/share/ngdevkit-gngeo"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
brew tap dciabrin/ngdevkit
brew install emudbg automake autoconf-archive sdl2 glew
- name: Build
run: ./.github/scripts/build.sh