diff --git a/.github/workflows/unlogic-ci.yml b/.github/workflows/unlogic-ci.yml index 3fca90d..5c69100 100644 --- a/.github/workflows/unlogic-ci.yml +++ b/.github/workflows/unlogic-ci.yml @@ -2,36 +2,36 @@ name: Unlogic CI on: push: - branches: [ "main" ] + branches: [ ] pull_request: - branches: [ "main" ] + branches: [ ] jobs: build: runs-on: ubuntu-24.04 steps: - - name: Update Package Manager - run: sudo apt update - - name: Install System Dependencies - run: sudo apt install -y build-essential cmake ninja-build llvm-18-dev wget libxkbcommon-x11-dev libxcb-icccm4-dev libxcb-image0-dev libx11-xcb-dev xcb - - name: Download QT - run: wget -O qt-installer.run https://d13lb3tujbc8s0.cloudfront.net/onlineinstallers/qt-online-installer-linux-x64-4.8.1.run - - name: Install QT - run: | - sudo chmod +x ./qt-installer.run - sudo ./qt-installer.run \ - --accept-licenses \ - --accept-obligations \ - --default-answer \ - --confirm-command install qt6.8.0-full-dev - - uses: actions/checkout@v4 - - name: Configure Project - run: mkdir cmake-build-release && cd cmake-build-release && cmake .. -DCMAKE_BUILD_TYPE=Release -G "Ninja" - - name: Build Unlogic - run: cd cmake-build-release && cmake --build . --target unlogic - - name: Build Unlogic Calculator - run: cd cmake-build-release && cmake --build . --target unlogic-calculator - - name: Build Tests - run: cd cmake-build-release && cmake --build . --target unlogic-test - - name: Run Tests - run: cd cmake-build-release && ./unlogic-test + - name: Update Package Manager + run: sudo apt update + - name: Install System Dependencies + run: sudo apt install -y build-essential cmake ninja-build llvm-18-dev wget libxkbcommon-x11-dev libxcb-icccm4-dev libxcb-image0-dev libx11-xcb-dev xcb + - name: Download QT + run: wget -O qt-installer.run https://d13lb3tujbc8s0.cloudfront.net/onlineinstallers/qt-online-installer-linux-x64-4.8.1.run + - name: Install QT + run: | + sudo chmod +x ./qt-installer.run + sudo ./qt-installer.run \ + --accept-licenses \ + --accept-obligations \ + --default-answer \ + --confirm-command install qt6.8.0-full-dev + - uses: actions/checkout@v4 + - name: Configure Project + run: mkdir cmake-build-release && cd cmake-build-release && cmake .. -DCMAKE_BUILD_TYPE=Release -G "Ninja" + - name: Build Unlogic + run: cd cmake-build-release && cmake --build . --target unlogic + - name: Build Unlogic Calculator + run: cd cmake-build-release && cmake --build . --target unlogic-calculator + - name: Build Tests + run: cd cmake-build-release && cmake --build . --target unlogic-test + - name: Run Tests + run: cd cmake-build-release && ./unlogic-test