From f626061705db078dd8fd596809808187ec1d92f1 Mon Sep 17 00:00:00 2001 From: Qwinci <32550582+Qwinci@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:48:59 +0300 Subject: [PATCH] misc: Add github workflow --- .github/workflows/it-compiles-test.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/it-compiles-test.yml diff --git a/.github/workflows/it-compiles-test.yml b/.github/workflows/it-compiles-test.yml new file mode 100644 index 0000000..f2bdb0c --- /dev/null +++ b/.github/workflows/it-compiles-test.yml @@ -0,0 +1,30 @@ +name: It Compiles! +on: [push, workflow_dispatch] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: > + sudo apt-get update && sudo apt-get install clang binutils gcc g++ lld cmake ninja-build xorriso 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 +