File: ci.yml

package info (click to toggle)
oomd 0.5.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,996 kB
  • sloc: cpp: 14,345; sh: 89; makefile: 7
file content (40 lines) | stat: -rw-r--r-- 767 bytes parent folder | download
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
name: CI

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  build:
    name: Build and test repo
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - cc: gcc-8
            cxx: g++-8
          - cc: clang
            cxx: clang++
    env:
      CC: ${{ matrix.cc }}
      CXX: ${{ matrix.cxx }}
    steps:
      - run: sudo apt-get update
      - name: Install dependencies
        run: >
          sudo apt-get install
          pkg-config
          libsystemd-dev
          libjsoncpp-dev
          googletest
          meson
          g++-8
      - name: Checkout code
        uses: actions/checkout@v2
      - run: meson build/
      - run: ninja -C build/
      - run: ninja -C build/ test