File: main.yml

package info (click to toggle)
tp-smapi 0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: ansic: 2,020; makefile: 99; xml: 22
file content (54 lines) | stat: -rw-r--r-- 1,416 bytes parent folder | download | duplicates (2)
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
name: CI

on:
  push:
    branches:
      - master
    tags:
      - '**'
  pull_request:

concurrency:
  group: ${{ github.ref_name }}-${{ github.workflow }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ${{ matrix.host }}
    strategy:
      fail-fast: false
      matrix:
        linux:
          - v6.1
          - master
        host:
          - ubuntu-22.04
        cc:
          - gcc
        include:
          - linux: master
            host: ubuntu-24.04
            cc: clang
    steps:
      - uses: actions/checkout@v4
        with:
          path: tp_smapi
      - uses: actions/checkout@v4
        with:
          repository: torvalds/linux
          ref: ${{ matrix.linux }}
          path: linux
      - run: sudo apt-get install -y libelf-dev ccache
      - uses: hendrikmuhs/ccache-action@v1.2
        with:
          key: ${{ matrix.linux }}-${{ matrix.cc }}
      - name: Configure kernel
        run: |
          make -C linux tinyconfig CC=${{ matrix.cc }}
          echo -e "CONFIG_64BIT=y\nCONFIG_X86_64=y\nCONFIG_MODULES=y\nCONFIG_INPUT=y" > linux/kernel/configs/ci.config
          make -C linux ci.config CC=${{ matrix.cc }}
      - name: Run make -C linux CC=${{ matrix.cc }}
        run: |
          export PATH="/usr/lib/ccache:$PATH"
          make -C linux -j $(nproc) CC=${{ matrix.cc }}
      - run: make -C tp_smapi modules KBUILD=../linux HDAPS=1 CC=${{ matrix.cc }}