-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: It Compiles! | ||
on: [push, workflow_dispatch] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install llvm | ||
run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 19 | ||
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100 | ||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 100 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install binutils gcc g++ cmake ninja-build xorriso acpica-tools git -y | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- 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 | ||