summaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
blob: 1e7224c7ab70b5da31b99fdfc482008de991adf6 (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
name: libbpf-ci

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

concurrency: 
  group: ci-test-${{ github.head_ref }}
  cancel-in-progress: true

jobs:
  vmtest:
    runs-on: ${{ matrix.runs_on }}
    name: Kernel ${{ matrix.kernel }} on ${{ matrix.runs_on }} + selftests
    strategy:
      fail-fast: false
      matrix:
        include:
          - kernel: 'LATEST'
            runs_on: ubuntu-20.04
            arch: 'x86_64'
          - kernel: '5.5.0'
            runs_on: ubuntu-20.04
            arch: 'x86_64'
          - kernel: '4.9.0'
            runs_on: ubuntu-20.04
            arch: 'x86_64'
          - kernel: 'LATEST'
            runs_on: s390x
            arch: 's390x'
    steps:
      - uses: actions/checkout@v3
        name: Checkout
      - uses: ./.github/actions/setup
        name: Setup
      - uses: ./.github/actions/vmtest
        name: vmtest
        with:
          kernel: ${{ matrix.kernel }}
          arch: ${{ matrix.arch }}