-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1005 Bytes
/
linux.yml
File metadata and controls
35 lines (31 loc) · 1005 Bytes
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
name: Linux build
on:
push:
branches: [ main, ci ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies from package manager
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt install gcc-12 g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libglew-dev ninja-build
- name: Install fmt
run: |
git clone https://github.com/fmtlib/fmt fmt --depth 1 --branch 9.1.0
mkdir fmt/build
cd fmt/build
cmake .. -GNinja -DBUILD_SHARED_LIBS=1 -DFMT_TEST=0
ninja
sudo ninja install
- name: Build & install EssaGUI
run: |
./install.sh
- name: Run tests
run: |
./run-all-tests.sh