Refactor codebase to use separate include dir #9
This file contains hidden or 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 Hazel Kernel ISO | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y cmake ninja-build grub-pc-bin xorriso mtools unzip | |
| - name: Setup i686-elf-gcc cross-compiler | |
| run: | | |
| curl -L https://github.com/lordmilko/i686-elf-tools/releases/download/13.2.0/i686-elf-tools-linux.zip -o /tmp/i686-elf-toolchain.zip | |
| sudo mkdir -p /opt/cross | |
| sudo unzip /tmp/i686-elf-toolchain.zip -d /opt/cross | |
| echo "/opt/cross/bin" >> $GITHUB_PATH | |
| - name: Configure CMake | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. --toolchain ../src/arch/i686/i686.cmake # Assuming i686 architecture based on provided files | |
| - name: Build ISO | |
| run: | | |
| cd build | |
| make iso | |
| - name: Upload ISO artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Hazel-Kernel-ISO | |
| path: Hazel.iso |