aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/c-cpp.yml
blob: 398a1cd24074a401a77adedd696ec31fd96d65f0 (plain) (blame)
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
name: C/C++ CI

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

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
      with: 
        submodules: 'true'
    - name: init submodule modules
      run: git submodule foreach git submodule init
    - name: pull submodule modules
      run: git submodule foreach git submodule update
    - name: run cmake
      run: cmake .
    - name: make
      run: make
    - uses: actions/upload-artifact@v2
      with:
        name: bin
        path: bin/