-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (51 loc) · 1.71 KB
/
CI.yml
File metadata and controls
54 lines (51 loc) · 1.71 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
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: Install Dependencies (Linux)
run: |
sudo apt-get update
sudo apt-get install -y -qq software-properties-common gcc-9 g++-9 cmake
echo "::set-env name=CC::gcc-9"
echo "::set-env name=CXX::g++-9"
if: matrix.os == 'ubuntu-latest'
- name: Install Dependencies (macOS)
run: |
brew update && brew install pkgconfig cmake
if: matrix.os == 'macOS-latest'
- name: Install Dependencies (Windows)
run: |
choco install pkgconfiglite cmake
if: matrix.os == 'windows-latest'
- name: Get Sources
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup CMake
run: |
mkdir "${{ runner.workspace }}/PolyPlugin/Build"
cd "${{ runner.workspace }}/PolyPlugin/Build"
cmake ..
shell: bash
- name: Build
run: cmake --build .
working-directory: ${{ runner.workspace }}/PolyPlugin/Build
- run: |
cd ${{ runner.workspace }}/PolyPlugin/Dist/Debug
./TestApp.exe
name: Test (Windows)
if: matrix.os == 'windows-latest'
- run: |
cd ${{ runner.workspace }}/PolyPlugin/Dist/
./TestApp
name: Test (Linux & macOS)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
- 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