Skip to content

Clang-tidy for C source files #60

Clang-tidy for C source files

Clang-tidy for C source files #60

Workflow file for this run

name: Build
on: [workflow_dispatch, pull_request]
env:
TERM: xterm-256color
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- name: Build - Ubuntu
runs-on: ubuntu-latest
- name: Build - Windows (win32)
runs-on: windows-latest
cmake-args: -A Win32 -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
- name: Build - Windows (win64)
runs-on: windows-latest
cmake-args: -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
- name: Build - macOS
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Generate project
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release ${{ matrix.cmake-args}}
- name: Build project
run: cmake --build build --config Release
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: |
**/*.so
**/*.dll
**/*.dylib
retention-days: 30
- name: Upload build errors
uses: actions/upload-artifact@v4
if: failure()
with:
name: CMake Errors - ${{ matrix.name }}
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
**/Testing/Temporary/LastTest.log
retention-days: 30