-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (60 loc) · 2.14 KB
/
CI.yml
File metadata and controls
63 lines (60 loc) · 2.14 KB
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
name: CI
# This workflow is triggered on pushes to the repository.
on: [push, pull_request]
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest] ## add different compilers
steps:
- name: Set up root privilleges (Linux && macOS)
run: echo ::set-env name=SUDO::sudo
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
- name: Set up root privilleges (Windows)
run: echo ::set-env name=SUDO::$()
if: matrix.os == 'windows-latest'
- name: Install Dependencies (Linux)
run: |
sudo apt-get update
sudo apt-get install -y -qq software-properties-common gcc g++ cmake mesa-common-dev libgl1-mesa-dev libeigen3-dev
if: matrix.os == 'ubuntu-latest'
- name: Install Dependencies (macOS)
run: |
brew update && brew install pkgconfig eigen
if: matrix.os == 'macOS-latest'
- name: Install Dependencies (Windows)
run: |
choco install pkgconfiglite cmake
if: matrix.os == 'windows-latest'
- name: Install Eigen3 (Windows)
run: |
git clone https://gitlab.com/libeigen/eigen
mkdir eigen/build && cd eigen/build
cmake ..
${{ env.SUDO }} cmake --install .
if: matrix.os == 'windows-latest'
- name: Install Qt
uses: jurplel/install-qt-action@v2
- name: Install EnTT
run: |
git clone https://github.com/skypjack/entt
cd entt && git checkout 043f9a5
cd build
cmake ..
${{ env.SUDO }} cmake --install .
working-directory: ${{ runner.workspace }}
- name: Get Sources
uses: actions/checkout@v2
- name: Setup CMake
run: |
mkdir "${{ runner.workspace }}/PolyDock/Build"
cd "${{ runner.workspace }}/PolyDock/Build"
cmake ../PolyDock
shell: bash
- name: Build
run: cmake --build .
working-directory: ${{ runner.workspace }}/PolyDock/Build
- name: Check with clang-tidy
if: matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' # only works for ubuntu and PR's
uses: muxee/clang-tidy-action@0.0.1-rc1