Skip to content

Use CMake as build system #34

Use CMake as build system

Use CMake as build system #34

Workflow file for this run

name: Build CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install gcc-riscv64-unknown-elf
- name: Configure CMake
run: cmake -DCMAKE_TOOLCHAIN_FILE=cmake/riscv64.cmake -B ${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: kernel.elf
path: ${{github.workspace}}/build/kernel.elf