aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/cpp-ci.yml
blob: 022deeb8b751637916367b4d772a6eef3b95b2fe (plain)
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
name: Build and Test

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    env:
      CXX: clang++-9
      CLANG_FORMAT: clang-format-9

    steps:
    - uses: actions/checkout@v2.2.0
    - name: install ninja
      run: |
        mkdir -p ${GITHUB_WORKSPACE}/ninja-bin; cd ${GITHUB_WORKSPACE}/ninja-bin
        wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
        unzip ninja-linux.zip
        rm ninja-linux.zip
        echo "::add-path::${GITHUB_WORKSPACE}/ninja-bin"
    - name: make
      run: make -j4 ckati ckati_tests
    - name: clang format
      run: ./clang-format-check
    - name: run standalone tests
      run: go test --ckati
    - name: run ninja tests
      run: go test --ckati --ninja
    - name: run ninja all targets tests
      run: go test --ckati --ninja --all
    - name: run ninja unit tests
      run: ./ninja_test
    - name: run stringpiece unit tests
      run: ./string_piece_test
    - name: run strutil unit tests
      run: ./strutil_test
    - name: run find unit tests
      run: ./find_test