Updated CI

This commit is contained in:
acidicoala
2025-10-05 22:14:32 +05:00
parent 85710cce37
commit 06809b2c5d
2 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ on: push
jobs: jobs:
build: build:
name: 🏗️ Project Build name: ${{ github.event.input.module }}-${{ matrix.os }}-${{ matrix.bitness }}
strategy: strategy:
fail-fast: false fail-fast: false

View File

@@ -1,4 +1,4 @@
name: 🏗️ Build name: Build
on: on:
workflow_call: workflow_call:
inputs: inputs:
@@ -19,23 +19,23 @@ on:
jobs: jobs:
build: build:
name: ${{ github.event.input.module }}-${{ matrix.os }}-${{ matrix.bitness }} name: ${{ inputs.os == 'Linux' && '🐧' || '🪟'}}-${{ inputs.bitness }}
runs-on: ${{ github.event.inputs.os == 'Linux' && 'ubuntu-24.04' || 'windows-2025'}} runs-on: ${{ inputs.os == 'Linux' && 'ubuntu-24.04' || 'windows-2025'}}
container: ${{ github.event.inputs.os == 'Linux' && 'ghcr.io/acidicoala/koalabox:master' || '' }} container: ${{ inputs.os == 'Linux' && 'ghcr.io/acidicoala/koalabox:master' || '' }}
env: env:
BUILD_DIR: ${{ github.workspace }}/build BUILD_DIR: ${{ github.workspace }}/build
C_COMPILER: ${{ github.event.inputs.os == 'Linux' && 'clang' || 'cl' }} C_COMPILER: ${{ inputs.os == 'Linux' && 'clang' || 'cl' }}
CXX_COMPILER: ${{ github.event.inputs.os == 'Linux' && 'clang++' || 'cl' }} CXX_COMPILER: ${{ inputs.os == 'Linux' && 'clang++' || 'cl' }}
WIN_FLAGS: ${{ github.event.inputs.os == 'Windows' && github.event.inputs.bitness == 32 && 'Win32' || 'x64'}} WIN_FLAGS: ${{ inputs.os == 'Windows' && inputs.bitness == 32 && 'Win32' || 'x64'}}
LINUX_FLAGS: ${{ github.event.inputs.os == 'Linux' && github.event.inputs.bitness == 32 && '-m32' || '-m64'}} LINUX_FLAGS: ${{ inputs.os == 'Linux' && inputs.bitness == 32 && '-m32' || '-m64'}}
OUTPUT_PATH: ${{ github.event.inputs.os == 'Linux' && '*.so' || 'Release/*.dll' }} OUTPUT_PATH: ${{ inputs.os == 'Linux' && '*.so' || 'Release/*.dll' }}
steps: steps:
# Fix dubious ownership errors # Fix dubious ownership errors
- name: '✔️ Mark GitHub workspace as safe' - name: '✔️ Mark GitHub workspace as safe'
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: '🛠️ Check compiler versions' - name: '🛠️ Check compiler versions'
if: ${{ github.event.inputs.os == 'Linux' }} if: ${{ inputs.os == 'Linux' }}
run: | run: |
clang++ --version clang++ --version
g++ --version g++ --version