[WORKFLOW]: CI Update

This commit is contained in:
2025-12-21 07:56:42 +05:30
parent a956f7b770
commit 1902458b35

View File

@ -7,59 +7,16 @@ on:
branches: [ "main" ] branches: [ "main" ]
jobs: jobs:
# ----------------------------------------------------------------------------- build-all:
# Linux Build (Ubuntu 22.04)
# Uses the 'linux-ci-release' preset
# -----------------------------------------------------------------------------
build-linux:
name: Linux (Clang / Release)
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/iabuild-env:latest
strategy:
matrix:
target: [linux-x64, linux-arm64, windows-x64, windows-arm64, wasm]
steps: steps:
- name: Checkout Code - uses: actions/checkout@v4
uses: actions/checkout@v4 - name: Build
run: |
- name: Install System Dependencies cmake --preset ${{ matrix.target }}
run: | cmake --build --preset debug
sudo apt-get update
sudo apt-get install -y ninja-build clang libssl-dev
- name: Configure CMake
run: cmake --preset linux-ci
- name: Build
run: cmake --build --preset linux-ci-release
- name: Run Unit Tests
run: ./out/build/linux-ci/bin/Release/IACore_Test_Suite
# -----------------------------------------------------------------------------
# Windows Build
# Uses the 'windows-debug' preset (Clang-CL + VCPKG)
# -----------------------------------------------------------------------------
build-windows:
name: Windows (Clang-CL / Debug)
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Ninja
run: choco install ninja
- name: Setup VCPKG Environment
run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_ENV
- name: Install OpenSSL via VCPKG
run: vcpkg install openssl:x64-windows
- name: Configure CMake
run: cmake --preset windows-default
- name: Build
run: cmake --build --preset windows-debug
- name: Run Unit Tests
run: ./out/build/windows-default/bin/Debug/IACore_Test_Suite.exe