misc: Add github workflow #153
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: It Compiles! | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: > | |
apt-get update && apt-get install clang binutils gcc g++ lld cmake ninja-build xorriso git -y | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build (x86_64 Clang) | |
run: | | |
cmake -B build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ | |
ninja -C build | |
- name: Build (x86_64 Gcc) | |
run: | | |
cmake -B build -G Ninja | |
ninja -C build | |
- name: Build (Aarch64 Clang) | |
run: | | |
cmake -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_clang_aarch64.cmake | |
ninja -C build | |