-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.36 KB
/
pipeline.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
name: pipeline
on: [push]
jobs:
linbound:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq libsdl2-dev libsdl2-net-dev libsdl2-ttf-dev libsdl2-gfx-dev libsdl2-mixer-dev libsdl2-image-dev libsqlite3-dev libbox2d-dev google-mock scons libtinyxml2-dev xvfb
- name: Clone guisan
run: git clone https://github.com/gbaudic/guisan --depth 1
shell: bash
- name: Install guisan
run: scons && sudo scons install
working-directory: guisan
shell: bash
- name: Clone gtest
run: git clone https://github.com/google/googletest --depth 1
shell: bash
- name: Install gtest
run: cmake -DCMAKE_CXX_STANDARD=11 . && sudo make install
working-directory: googletest
shell: bash
- name: Clone linbound
uses: actions/checkout@v2
- name: Build linbound
run: |
cmake -DENABLE_SERVER=ON -DRESOURCE_PREFIX=./res .
mkdir -p bin
pushd bin && ln -s ../res && popd
xvfb-run --auto-servernum make -j2
xvfb-run --auto-servernum ctest
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}