Skip to content

Commit d2c8500

Browse files
committed
update: latest changes across project files
1 parent 8e0df82 commit d2c8500

3 files changed

Lines changed: 109 additions & 5 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 66 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
repository_dispatch:
66
types: [dependency-update]
77
push:
8-
branches: [master]
8+
branches: [main, master, develop]
99
pull_request:
10-
branches: [master]
10+
branches: [main, master]
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1115

1216
jobs:
1317
build:
@@ -36,10 +40,67 @@ jobs:
3640
strategy:
3741
fail-fast: false
3842
matrix:
39-
profile: [smart-camera, industrial-gateway, robot-controller, mobile-edge]
43+
profile:
44+
- adaptive-edge
45+
- bci-assistive
46+
- industrial-gateway
47+
- mobile-edge
48+
- robot-controller
49+
- smart-camera
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: Build profile
53+
run: |
54+
cmake -B build \
55+
-DEAI_BUILD_TESTS=OFF \
56+
-DEAI_BUILD_MIN=ON \
57+
-DEAI_BUILD_FRAMEWORK=ON \
58+
-DEAI_BUILD_BCI=ON
59+
cmake --build build
60+
61+
cross-compile:
62+
name: Cross (${{ matrix.arch }})
63+
runs-on: ubuntu-latest
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
include:
68+
- arch: aarch64
69+
pkg: gcc-aarch64-linux-gnu
70+
cc: aarch64-linux-gnu-gcc
71+
- arch: arm
72+
pkg: gcc-arm-linux-gnueabihf
73+
cc: arm-linux-gnueabihf-gcc
74+
- arch: riscv64
75+
pkg: gcc-riscv64-linux-gnu
76+
cc: riscv64-linux-gnu-gcc
77+
steps:
78+
- uses: actions/checkout@v4
79+
- name: Install cross-compiler
80+
run: |
81+
sudo apt-get update
82+
sudo apt-get install -y ${{ matrix.pkg }}
83+
- name: Cross-compile
84+
run: |
85+
cmake -B build \
86+
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
87+
-DCMAKE_SYSTEM_NAME=Linux \
88+
-DEAI_BUILD_TESTS=OFF
89+
cmake --build build
90+
91+
sanitize:
92+
name: Sanitizers
93+
runs-on: ubuntu-latest
4094
steps:
4195
- uses: actions/checkout@v4
42-
- name: Build ${{ matrix.profile }}
96+
- name: Build with ASAN/UBSAN
4397
run: |
44-
cmake -B build -DEAI_PROFILE=${{ matrix.profile }}
98+
cmake -B build \
99+
-DEAI_BUILD_TESTS=ON \
100+
-DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
45101
cmake --build build
102+
- name: Run tests under sanitizers
103+
run: ctest --test-dir build --output-on-failure
104+
env:
105+
ASAN_OPTIONS: detect_leaks=1:halt_on_error=1
106+
UBSAN_OPTIONS: halt_on_error=1

.github/workflows/codeql.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [main, master, develop]
6+
pull_request:
7+
branches: [main, master, develop]
8+
schedule:
9+
- cron: '30 5 * * 1'
10+
11+
concurrency:
12+
group: codeql-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
jobs:
21+
analyze:
22+
name: Analyze (C/C++)
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v3
28+
with:
29+
languages: c-cpp
30+
- name: Build
31+
run: |
32+
cmake -B build -DEAI_BUILD_TESTS=ON
33+
cmake --build build --parallel
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@v3
36+
with:
37+
category: "/language:c-cpp"

0 commit comments

Comments
 (0)