From 06809b2c5d4a2321b1a76c9a4be69b3da0bd20c8 Mon Sep 17 00:00:00 2001 From: acidicoala <67734819+acidicoala@users.noreply.github.com> Date: Sun, 5 Oct 2025 22:14:32 +0500 Subject: [PATCH] Updated CI --- .github/workflows/build.yml | 2 +- .github/workflows/kb-build.yml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62cbd25..ee5a5ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ on: push jobs: build: - name: 🏗️ Project Build + name: ${{ github.event.input.module }}-${{ matrix.os }}-${{ matrix.bitness }} strategy: fail-fast: false diff --git a/.github/workflows/kb-build.yml b/.github/workflows/kb-build.yml index f694987..b805f3c 100644 --- a/.github/workflows/kb-build.yml +++ b/.github/workflows/kb-build.yml @@ -1,4 +1,4 @@ -name: 🏗️ Build +name: Build on: workflow_call: inputs: @@ -19,23 +19,23 @@ on: jobs: build: - name: ${{ github.event.input.module }}-${{ matrix.os }}-${{ matrix.bitness }} - runs-on: ${{ github.event.inputs.os == 'Linux' && 'ubuntu-24.04' || 'windows-2025'}} - container: ${{ github.event.inputs.os == 'Linux' && 'ghcr.io/acidicoala/koalabox:master' || '' }} + name: ${{ inputs.os == 'Linux' && '🐧' || '🪟'}}-${{ inputs.bitness }} + runs-on: ${{ inputs.os == 'Linux' && 'ubuntu-24.04' || 'windows-2025'}} + container: ${{ inputs.os == 'Linux' && 'ghcr.io/acidicoala/koalabox:master' || '' }} env: BUILD_DIR: ${{ github.workspace }}/build - C_COMPILER: ${{ github.event.inputs.os == 'Linux' && 'clang' || 'cl' }} - CXX_COMPILER: ${{ github.event.inputs.os == 'Linux' && 'clang++' || 'cl' }} - WIN_FLAGS: ${{ github.event.inputs.os == 'Windows' && github.event.inputs.bitness == 32 && 'Win32' || 'x64'}} - LINUX_FLAGS: ${{ github.event.inputs.os == 'Linux' && github.event.inputs.bitness == 32 && '-m32' || '-m64'}} - OUTPUT_PATH: ${{ github.event.inputs.os == 'Linux' && '*.so' || 'Release/*.dll' }} + C_COMPILER: ${{ inputs.os == 'Linux' && 'clang' || 'cl' }} + CXX_COMPILER: ${{ inputs.os == 'Linux' && 'clang++' || 'cl' }} + WIN_FLAGS: ${{ inputs.os == 'Windows' && inputs.bitness == 32 && 'Win32' || 'x64'}} + LINUX_FLAGS: ${{ inputs.os == 'Linux' && inputs.bitness == 32 && '-m32' || '-m64'}} + OUTPUT_PATH: ${{ inputs.os == 'Linux' && '*.so' || 'Release/*.dll' }} steps: # Fix dubious ownership errors - name: '✔️ Mark GitHub workspace as safe' run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: '🛠️ Check compiler versions' - if: ${{ github.event.inputs.os == 'Linux' }} + if: ${{ inputs.os == 'Linux' }} run: | clang++ --version g++ --version