blob: 00f7700af51720350b8f4a36705e630fba64b872 (
plain)
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
|
name: Build
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
docker:
- 'registry.fedoraproject.org/fedora:latest'
- 'quay.io/centoshyperscale/centos:stream8'
fail-fast: false
container: ${{ matrix.docker }}
steps:
- name: Set up DNF download cache
id: dnf-cache
uses: actions/cache@v3
with:
path: /var/cache/dnf
key: ${{ runner.os }}-dnfcache
- name: Install pre-requisites
run: dnf --assumeyes --setopt=install_weak_deps=False install
gcc-c++ cmake make /usr/bin/git
'pkgconfig(gl)' 'pkgconfig(glu)'
'pkgconfig(sdl2)' 'pkgconfig(SDL2_net)'
'pkgconfig(gtk+-2.0)' 'pkgconfig(ogg)' 'pkgconfig(vorbis)'
freeimage-devel 'pkgconfig(openal)' 'pkgconfig(libjpeg)'
'pkgconfig(theora)' 'pkgconfig(bzip2)' 'pkgconfig(freetype2)'
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones speed things up
- name: cmake configure
run: cmake -S ./Projects -B ./Build
- name: compile with cmake
run: cmake --build ./Build --verbose -j4
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones speed things up
- name: cmake configure
run: cmake -S ./Projects -B ./Build
- name: compile with cmake
run: cmake --build ./Build
|