Skip to content

Commit 0bfa3a2

Browse files
committed
add GHA based CI
1 parent a63729a commit 0bfa3a2

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- '**'
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.ref_name }}-${{ github.workflow }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
linux:
22+
- v6.1
23+
- master
24+
steps:
25+
- uses: actions/checkout@v3
26+
with:
27+
path: tp_smapi
28+
- uses: actions/checkout@v3
29+
with:
30+
repository: torvalds/linux
31+
ref: ${{ matrix.linux }}
32+
path: linux
33+
- run: sudo apt-get install -y libelf-dev ccache
34+
- uses: hendrikmuhs/ccache-action@v1.2
35+
with:
36+
key: ${{ matrix.linux }}
37+
- run: make -C linux defconfig
38+
- name: Run make -C linux
39+
run: |
40+
export PATH="/usr/lib/ccache:$PATH"
41+
make -C linux -j $(nproc)
42+
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1

0 commit comments

Comments
 (0)