-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.71 KB
/
kernel.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Kernel CI
on:
push:
branches: [ "trunk" ]
pull_request:
branches: [ "trunk" ]
jobs:
mac-build:
runs-on: macos-latest
strategy:
matrix:
arch: ["x86_64","aarch64","riscv64","loongarch64"]
steps:
- name: Install Dependencies
run: |
brew update --preinstall
brew install llvm make nasm xorriso coreutils mtools gptfdisk lld
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
echo "/opt/homebrew/opt/make/libexec/gnubin" >> $GITHUB_PATH
echo "/usr/local/opt/coreutils/libexec/gnubin" >> $GITHUB_PATH
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: make
run: |
make KARCH=${{ matrix.arch }} KCC=clang KLD=ld.lld
make clean KARCH=${{ matrix.arch }}
make all-hdd KARCH=${{ matrix.arch }} KCC=clang KLD=ld.lld
- name: Run Tests
working-directory: tests/
run: |
make CC=clang LD=ld.lld
./test
linux-build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: ["x86_64","aarch64","riscv64","loongarch64"]
steps:
- run: |
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
sudo apt update
sudo apt install -y clang lld nasm xorriso gdisk mtools
echo "$(find /usr/lib/llvm-* -maxdepth 0)/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: make
run: |
make KARCH=${{ matrix.arch }} KCC=clang KLD=ld.lld
make clean KARCH=${{ matrix.arch }}
make all-hdd KARCH=${{ matrix.arch }} KCC=clang KLD=ld.lld
- name: Run Tests
working-directory: tests/
run: |
make CC=clang LD=ld.lld
./test