aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pull_request.yml
blob: 5914a94cd379cbc40847985947fb541ce06f54ef (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
45
name: pull_request
on: pull_request
jobs:
  ubuntu-20:
    timeout-minutes: 5
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: pre-push
        run: |
          sudo apt-get update
          sudo apt-get -y install libjson-c-dev libcmocka-dev clang valgrind
          make pre-push VERBOSE=1
  ubuntu-18:
    timeout-minutes: 5
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - name: pre-push
        run: |
          sudo apt-get -y install libjson-c-dev libcmocka-dev clang valgrind
          make pre-push VERBOSE=1
  centos-7:
    timeout-minutes: 5
    runs-on: ubuntu-latest
    container: centos:7
    steps:
      - uses: actions/checkout@v2
      - name: pre-push
        run: |
          yum -y install make gcc-4.8.5 epel-release pciutils
          yum -y install clang cmake json-c-devel libcmocka-devel \
              openssl-devel valgrind
          make pre-push VERBOSE=1
  fedora-rawhide:
    timeout-minutes: 5
    runs-on: ubuntu-latest
    container: fedora
    steps:
      - uses: actions/checkout@v2
      - name: pre-push
        run: |
          dnf -y install --releasever=34 gcc make clang cmake json-c-devel libcmocka-devel \
              openssl-devel pciutils diffutils valgrind
          make pre-push VERBOSE=1