-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.3 KB
/
build_linux.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
name: Build on GNU/Linux (x86_64)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y make clang clang-15 python3 python3-pip
python3 -m pip install compiledb
- name: Initialize GitHub Modules
run: |
git submodule update --init --recursive
- name: Ready Toolchain
run: |
cd Toolchain
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz
tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz
cd ..
sed -i 's/^TOOLCHAIN_PATH = .*/TOOLCHAIN_PATH=Toolchain\/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-elf/' Makefile
- name: Build The Kernel
run: |
make kernel
- name: Build The Tests
run: |
sed -i 's/^HOST_CC = .*/HOST_CC=clang-15/' Makefile
sed -i 's/^HOST_CXX = .*/HOST_CXX=clang++-15/' Makefile
make test
- name: Generate compile_commands
run: |
make compiledb