-
Notifications
You must be signed in to change notification settings - Fork 80
78 lines (73 loc) · 2.12 KB
/
pr-smoketest-opensuse-leap.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
76
77
78
name: Smoketest / Informative / openSUSE Leap
on:
pull_request:
merge_group:
jobs:
test:
name: Compilers
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
suse:
# 15.3 is the oldest openSUSE Leap with a new enough clang
- "15.3"
- "15.4"
- "15.5"
compiler:
- g++
- clang++
build-type:
- Release
- Debug
container: opensuse/leap:${{ matrix.suse }}
steps:
- name: Install Dependencies
run: |
zypper --non-interactive update
zypper --non-interactive install \
tar \
gzip \
git \
"$(\
zypper se \
--provides \
--match-exact '/usr/bin/${{ matrix.compiler }}' \
| tail -n 1 \
| awk '{ print $2 }' \
)" \
cmake \
make \
ccache \
boost-devel \
cairo-devel \
glew-devel \
glm-devel \
libboost_filesystem*6*devel \
libboost_locale*6*devel \
libboost_regex*6*devel \
libboost_system*6*devel \
libboost_thread*6*devel \
libicu-devel \
libSDL2_image-devel \
libSDL2_mixer-devel \
libSDL2_ttf-devel \
libSDL2-devel \
libvorbis-devel
- name: Checkout Anura
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
submodules: true
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: ${{ github.job }}-opensuse-leap-${{ matrix.suse }}-${{ matrix.compiler }}-${{ matrix.build-type }}
- name: Build Anura
env:
CXX: ${{ matrix.compiler }}
# Compile with number of available hyperthreads
run: |
cmake -DCMAKE_BUILD_TYPE="${{ matrix.build-type }}" .
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
run: ./anura --tests