Merge commit 'a67f311330461cf90801a74fe351a4a80a5abb11' as 'external/ELFIO'

This commit is contained in:
2026-05-11 11:41:03 +02:00
261 changed files with 21266 additions and 0 deletions
+99
View File
@@ -0,0 +1,99 @@
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: CMake Build & Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-22.04, windows-latest, windows-2022, macos-13, macos-15]
build_type: [Release, Debug]
cpp_compiler: [g++, clang++, cl]
include:
- os: windows-latest
cpp_compiler: cl
c_compiler: cl
- os: windows-2022
cpp_compiler: cl
c_compiler: cl
- os: ubuntu-latest
cpp_compiler: g++
c_compiler: gcc
- os: ubuntu-latest
cpp_compiler: clang++
c_compiler: clang
- os: ubuntu-22.04
cpp_compiler: g++
c_compiler: gcc
- os: ubuntu-22.04
cpp_compiler: clang++
c_compiler: clang
- os: macos-13
cpp_compiler: g++
c_compiler: gcc
- os: macos-13
cpp_compiler: clang++
c_compiler: clang
- os: macos-15
cpp_compiler: g++
c_compiler: gcc
- os: macos-15
cpp_compiler: clang++
c_compiler: clang
exclude:
- os: windows-latest
cpp_compiler: g++
- os: windows-latest
cpp_compiler: clang++
- os: windows-2022
cpp_compiler: g++
- os: windows-2022
cpp_compiler: clang++
- os: ubuntu-latest
cpp_compiler: cl
- os: ubuntu-22.04
cpp_compiler: cl
- os: macos-13
cpp_compiler: cl
- os: macos-15
cpp_compiler: cl
steps:
- uses: actions/checkout@v4
with:
repository: 'Serge1/ELFIO'
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build/${{ matrix.build_type }}/${{ matrix.cpp_compiler }}" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config ${{ matrix.build_type }} --output-on-failure --verbose
+69
View File
@@ -0,0 +1,69 @@
name: "CodeQL"
on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 15 * * 5'
permissions:
contents: read
jobs:
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['cpp']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
#- run: git checkout HEAD^2
# if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
#- name: Autobuild
# uses: github/codeql-action/autobuild@v1
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
- run: |
cmake -B build -D ELFIO_BUILD_EXAMPLES=ON
cmake --build build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3