mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2025-12-05 21:15:39 -05:00
Updated CI
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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
|
||||||
|
|||||||
20
.github/workflows/kb-build.yml
vendored
20
.github/workflows/kb-build.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user