docs: 'Early Memory Mappings' diagram showing physical to virtual mem… #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |