Skip to content

chore(deps): bump github/codeql-action from 3 to 4 #99

chore(deps): bump github/codeql-action from 3 to 4

chore(deps): bump github/codeql-action from 3 to 4 #99

Workflow file for this run

name: CI
on:
workflow_dispatch:
repository_dispatch:
types: [dependency-update]
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -B build -DEAI_BUILD_TESTS=ON
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build --output-on-failure -C Release
build-profiles:
name: Profile (${{ matrix.profile }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
profile:
- adaptive-edge
- bci-assistive
- industrial-gateway
- mobile-edge
- robot-controller
- smart-camera
steps:
- uses: actions/checkout@v4
- name: Build profile
run: |
cmake -B build \
-DEAI_BUILD_TESTS=OFF \
-DEAI_BUILD_MIN=ON \
-DEAI_BUILD_FRAMEWORK=ON \
-DEAI_BUILD_BCI=ON
cmake --build build
cross-compile:
name: Cross (${{ matrix.arch }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
pkg: gcc-aarch64-linux-gnu
cc: aarch64-linux-gnu-gcc
- arch: arm
pkg: gcc-arm-linux-gnueabihf
cc: arm-linux-gnueabihf-gcc
- arch: riscv64
pkg: gcc-riscv64-linux-gnu
cc: riscv64-linux-gnu-gcc
steps:
- uses: actions/checkout@v4
- name: Install cross-compiler
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.pkg }}
- name: Cross-compile
run: |
cmake -B build \
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
-DCMAKE_SYSTEM_NAME=Linux \
-DEAI_BUILD_TESTS=OFF
cmake --build build
sanitize:
name: Sanitizers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build with ASAN/UBSAN
run: |
cmake -B build \
-DEAI_BUILD_TESTS=ON \
-DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
cmake --build build
- name: Run tests under sanitizers
run: ctest --test-dir build --output-on-failure
env:
ASAN_OPTIONS: detect_leaks=1:halt_on_error=1
UBSAN_OPTIONS: halt_on_error=1