-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 1.39 KB
/
build.yml
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: Kernel Build
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: ARM64
container:
image: registry.fedoraproject.org/fedora-minimal:39
steps:
- name: Install Toolchain
run: |
dnf5 up -y
dnf5 install -y make gcc ccache flex bison elfutils-devel xz bc tar openssl-devel rpmbuild git dwarves openssl perl python3 rsync
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: 'recursive'
- name: Setup enviroment variables
run: |
echo "CCACHE_DIR=$(pwd)/ccache" >> $GITHUB_ENV
echo "KERNEL_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Setup ccache cache
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ matrix.platform }}-${{ env.KERNEL_COMMIT }}-${{ hashFiles('kernel.config') }}
restore-keys: |
ccache-${{ matrix.platform }}-${{ env.KERNEL_COMMIT }}-
ccache-${{ matrix.platform }}-
- name: Set git safe directory
run: git config --global safe.directory '*'
- name: Make
run: make CC="ccache gcc" all
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: |
mt8183/rpmbuild/RPMS/aarch64/*.rpm
mt8183/rpmbuild/SRPMS/*.src.rpm