about summary refs log tree commit diff
path: root/src/n-acd/.github/workflows/ci.yml
blob: 22fc814187ca1a5ca2c3d8dfded7853354dbc823 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Continuous Integration

on:
  push:
  pull_request:
  schedule:
  - cron:  '0 0 * * *'

jobs:
  ci:
    name: CI with Default Configuration
    runs-on: ubuntu-latest

    steps:
    #
    # Prepare CI
    #
    # We cannot use the github-action of the `ci-c-util` project, because we
    # need privileges in the container. Therefore, fetch the CI sources and
    # build the container manually.
    #
    - name: Fetch CI
      uses: actions/checkout@v2
      with:
        repository: c-util/automation
        ref: v1
        path: automation
    - name: Build CI
      working-directory: automation/src/ci-c-util
      run: docker build --tag ci-c-util:v1 .

    #
    # Run CI
    #
    # Take the CI image we built and run the CI with the default project
    # configuration. We do not use valgrind, since it falls-over with bpf(2)
    # syscalls.
    #
    - name: Fetch Sources
      uses: actions/checkout@v2
      with:
        path: source
    - name: Run through C-Util CI
      run: |
        docker run \
                --privileged \
                -v "$(pwd)/source:/github/workspace" \
                "ci-c-util:v1" \
                "--m32=1" \
                "--source=/github/workspace"

  ci-no-ebpf:
    name: CI without eBPF
    runs-on: ubuntu-latest

    steps:
    # See above in 'ci' job.
    - name: Fetch CI
      uses: actions/checkout@v2
      with:
        repository: c-util/automation
        ref: v1
        path: automation
    - name: Build CI
      working-directory: automation/src/ci-c-util
      run: docker build --tag ci-c-util:v1 .

    #
    # Run CI
    #
    # This again runs the CI, but this time disables eBPF. We do support the
    # legacy BPF fallback, so lets make sure we test for it.
    #
    - name: Fetch Sources
      uses: actions/checkout@v2
      with:
        path: source
    - name: Run through C-Util CI
      run: |
        docker run \
                --privileged \
                -v "$(pwd)/source:/github/workspace" \
                "ci-c-util:v1" \
                "--m32=1" \
                "--mesonargs=-Debpf=false" \
                "--source=/github/workspace"

  ci-valgrind:
    name: CI through Valgrind
    runs-on: ubuntu-latest

    steps:
    # See above in 'ci' job.
    - name: Fetch CI
      uses: actions/checkout@v2
      with:
        repository: c-util/automation
        ref: v1
        path: automation
    - name: Build CI
      working-directory: automation/src/ci-c-util
      run: docker build --tag ci-c-util:v1 .

    #
    # Run CI
    #
    # This again runs the CI, but this time through valgrind. Since some
    # syscalls are not implemented on x86-64 32bit compat (e.g., bpf(2)), we
    # disable the m32 mode.
    #
    - name: Fetch Sources
      uses: actions/checkout@v2
      with:
        path: source
    - name: Run through C-Util CI
      run: |
        docker run \
                --privileged \
                -v "$(pwd)/source:/github/workspace" \
                "ci-c-util:v1" \
                "--source=/github/workspace" \
                "--valgrind=1"