-
Notifications
You must be signed in to change notification settings - Fork 3
136 lines (117 loc) · 3.77 KB
/
ci.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Build
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build-linux:
name: Linux (${{ matrix.linux.system }})
runs-on: ubuntu-latest
strategy:
matrix:
linux:
- { system: X, apt-packages: libx11-dev libxext-dev }
- { system: SDL1, apt-packages: libsdl1.2-dev }
- { system: SDL2, apt-packages: libsdl2-dev }
steps:
- uses: actions/checkout@v3
- name: Install dependencies
if: ${{ matrix.linux.apt-packages != '' }}
run: sudo apt-get update && sudo apt-get install ${{ matrix.linux.apt-packages }}
- name: Configure
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSYSTEM=${{ matrix.linux.system }} .
- name: Build
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel
- uses: actions/upload-artifact@v3
with:
name: arcem-${{ matrix.linux.platform }}
path: ./build/arcem
build-msvc:
name: Windows (MSVC ${{ matrix.msvc.platform }})
runs-on: windows-latest
strategy:
matrix:
msvc:
- { platform: Win32 }
- { platform: x64 }
steps:
- uses: actions/checkout@v3
- name: Configure
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -A ${{ matrix.msvc.platform }} .
- name: Build
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel
- uses: actions/upload-artifact@v3
with:
name: arcem-msvc-${{ matrix.msvc.platform }}
path: build/Release/ArcEm.exe
build-mingw:
name: Windows (${{ matrix.mingw.msystem }})
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
matrix:
mingw:
- { msystem: mingw32, msys-env: mingw-w64-i686 }
- { msystem: mingw64, msys-env: mingw-w64-x86_64 }
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.mingw.msystem }}
install: ${{ matrix.mingw.msys-env }}-cc ${{ matrix.mingw.msys-env }}-cmake
- uses: actions/checkout@v3
- name: Configure
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} .
- name: Build
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel
- uses: actions/upload-artifact@v3
with:
name: arcem-${{ matrix.mingw.msystem }}
path: ./build/ArcEm.exe
build-watcom:
name: Windows (OpenWatcom)
runs-on: ubuntu-latest
steps:
- name: Set up OpenWatcom
uses: open-watcom/setup-watcom@v0
with:
tag: 2021-12-01-Build
- uses: actions/checkout@v3
- name: Build
run: wmake -f Makefile.ow
- uses: actions/upload-artifact@v3
with:
name: arcem-watcom
path: ./ArcEm.exe
build-riscos:
name: RISC OS
runs-on: ubuntu-latest
container: riscosdotinfo/riscos-gccsdk-4.7:latest
steps:
- uses: actions/checkout@v3
- name: Build
run: make SYSTEM=riscos-single CROSS=arm-unknown-riscos-
- uses: actions/upload-artifact@v3
with:
name: arcem-riscos
path: ./ArcEm
build-amiga:
name: ${{ matrix.amiga.name }}
runs-on: ubuntu-latest
container: amigadev/crosstools:${{ matrix.amiga.host }}
strategy:
matrix:
amiga:
- { name: "AmigaOS 3", host: "m68k-amigaos", cmake-flags: -DM68K_CRT=nix20 }
- { name: "AmigaOS 4", host: "ppc-amigaos", cmake-flags: -DPPC_CRT=newlib }
steps:
- uses: actions/checkout@v3
- name: Configure
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.amiga.cmake-flags }} .
- name: Build
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel
- uses: actions/upload-artifact@v3
with:
name: arcem-${{ matrix.amiga.host }}
path: ./arcem