Skip to content

Commit 03f10c8

Browse files
authored
Merge pull request #100 from sir-gon/feature/malloc_interceptor
Feature/malloc interceptor
2 parents 4eb8e6e + a18f981 commit 03f10c8

28 files changed

Lines changed: 467 additions & 153 deletions

.github/workflows/c-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on: # yamllint disable-line rule:truthy
1212
jobs:
1313
coverage:
1414
name: C/C++ CMake CI Coverage
15-
runs-on: ubuntu-24.04
15+
runs-on: ubuntu-26.04
1616

1717
steps:
1818
- name: Checkout repository

.github/workflows/clang-format.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on: # yamllint disable-line rule:truthy
1212
jobs:
1313
lint:
1414
name: clang-format style check
15-
runs-on: ubuntu-24.04
15+
runs-on: ubuntu-26.04
1616

1717
steps:
1818
- name: Checkout repository
@@ -21,12 +21,15 @@ jobs:
2121
- name: Install dependencies
2222
# yamllint disable rule:line-length
2323
run: |
24-
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
25-
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
24+
sudo mkdir -p /etc/apt/keyrings
25+
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key \
26+
| sudo gpg --dearmor -o /etc/apt/keyrings/llvm-snapshot.gpg
27+
echo "deb [signed-by=/etc/apt/keyrings/llvm-snapshot.gpg] http://apt.llvm.org/resolute/ llvm-toolchain-resolute-22 main" \
28+
| sudo tee /etc/apt/sources.list.d/llvm.list && \
2629
sudo apt-get -y update
27-
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format-19
28-
sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-19) 100
29-
sudo update-alternatives --set clang-format $(update-alternatives --list clang-format | grep clang-format-19)
30+
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format-22
31+
sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-22) 100
32+
sudo update-alternatives --set clang-format $(update-alternatives --list clang-format | grep clang-format-22)
3033
# yamllint enable rule:line-length
3134
3235
- name: Check Tools

.github/workflows/cppcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy
1313
jobs:
1414
lint:
1515
name: CppCheck Lint
16-
runs-on: ubuntu-24.04
16+
runs-on: ubuntu-26.04
1717

1818
steps:
1919
- name: Checkout repository

.github/workflows/docker-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
build:
2020
name: "Build Docker images"
21-
runs-on: ubuntu-24.04
21+
runs-on: ubuntu-26.04
2222
steps:
2323
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
2424

@@ -73,7 +73,7 @@ jobs:
7373

7474
lint:
7575
name: "Run in docker: LINT"
76-
runs-on: ubuntu-24.04
76+
runs-on: ubuntu-26.04
7777
needs: build
7878
steps:
7979
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
@@ -98,7 +98,7 @@ jobs:
9898
9999
test:
100100
name: "Run in docker: TEST"
101-
runs-on: ubuntu-24.04
101+
runs-on: ubuntu-26.04
102102
needs: build
103103
steps:
104104
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
@@ -124,7 +124,7 @@ jobs:
124124
# yamllint disable rule:line-length
125125
# security:
126126
# name: "Snyk Container"
127-
# runs-on: ubuntu-24.04
127+
# runs-on: ubuntu-26.04
128128
# needs: build
129129
# permissions:
130130
# actions: read
@@ -173,7 +173,7 @@ jobs:
173173

174174
scan:
175175
name: "Trivy"
176-
runs-on: ubuntu-24.04
176+
runs-on: ubuntu-26.04
177177
needs: build
178178
permissions:
179179
actions: read

.github/workflows/gitleaks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on: # yamllint disable-line rule:truthy
1919
jobs:
2020
scan:
2121
name: gitleaks
22-
runs-on: ubuntu-24.04
22+
runs-on: ubuntu-26.04
2323
steps:
2424
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
2525
with:

.github/workflows/make-coverage-html.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on: # yamllint disable-line rule:truthy
1515
jobs:
1616
make-coverage-html:
1717
name: "Run make coverage/html and verify coverage HTML"
18-
runs-on: ubuntu-24.04
18+
runs-on: ubuntu-26.04
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6

.github/workflows/markdown-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
jobs:
1616
markdownlint:
1717
name: Markdown Lint
18-
runs-on: ubuntu-24.04
18+
runs-on: ubuntu-26.04
1919

2020
strategy:
2121
matrix:

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy
1111
jobs:
1212
build:
1313
name: SonarCloud build and run sonar-scanner
14-
runs-on: ubuntu-24.04
14+
runs-on: ubuntu-26.04
1515
env:
1616
# Directory where build-wrapper output will be placed
1717
BUILD_WRAPPER_OUT_DIR: build

.github/workflows/yamllint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy
1313
jobs:
1414
lint:
1515
name: YAML lint
16-
runs-on: ubuntu-24.04
16+
runs-on: ubuntu-26.04
1717
steps:
1818
- name: Checkout repository
1919
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6

Dockerfile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE_VERSION=ubuntu:noble-20260509.1
1+
ARG BASE_IMAGE_VERSION=ubuntu:26.04
22
FROM ${BASE_IMAGE_VERSION} AS init
33

44
ENV WORKDIR=/app
@@ -34,7 +34,7 @@ RUN apt-get -y update && \
3434
ca-certificates curl git ninja-build unzip zip && \
3535
rm -rf /var/lib/apt/lists/* && \
3636
mkdir /opt/vcpkg && \
37-
git clone --branch ${VCPKG_VERSION} https://github.com/microsoft/vcpkg "${VCPKG_ROOT}" && \
37+
git clone --branch "${VCPKG_VERSION}" https://github.com/microsoft/vcpkg "${VCPKG_ROOT}" && \
3838
/opt/vcpkg/bootstrap-vcpkg.sh && \
3939
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && \
4040
rm -rf /var/lib/apt/lists/* && \
@@ -69,12 +69,15 @@ FROM builder AS lint
6969
RUN apt-get update && \
7070
apt-get -y install --no-install-recommends --no-install-suggests gnupg software-properties-common && \
7171
rm -rf /var/lib/apt/lists/*
72-
ADD https://apt.llvm.org/llvm-snapshot.gpg.key llvm-snapshot.gpg.key
73-
RUN apt-key add llvm-snapshot.gpg.key && \
74-
apt-add-repository -y "deb https://apt.llvm.org/plucky/ llvm-toolchain-plucky-20 main" && \
72+
73+
RUN mkdir -p /etc/apt/keyrings && \
74+
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key \
75+
| gpg --dearmor -o /etc/apt/keyrings/llvm-snapshot.gpg && \
76+
echo "deb [signed-by=/etc/apt/keyrings/llvm-snapshot.gpg] http://apt.llvm.org/resolute/ llvm-toolchain-resolute-22 main" \
77+
| tee /etc/apt/sources.list.d/llvm.list && \
7578
apt-get -y update && \
76-
apt-get -y install --no-install-recommends --no-install-suggests clang-format-19 && \
77-
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-19) 100 && \
79+
apt-get -y install --no-install-recommends --no-install-suggests clang-format-22 && \
80+
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-22) 100 && \
7881
rm -rf /var/lib/apt/lists/*
7982

8083
ADD https://deb.nodesource.com/setup_22.x nodesource_setup.sh
@@ -83,10 +86,16 @@ RUN bash nodesource_setup.sh && \
8386
npm install -g --ignore-scripts markdownlint-cli@0.47.0 && \
8487
apt-get -y install --no-install-recommends --no-install-suggests python3-minimal python3-pip && \
8588
rm /usr/lib/python3.*/EXTERNALLY-MANAGED && \
86-
pip install --no-cache-dir yamllint && \
89+
apt-get -y install --no-install-recommends --no-install-suggests yamllint && \
8790
apt-get -y install --no-install-recommends --no-install-suggests cppcheck && \
8891
rm -rf /var/lib/apt/lists/*
8992

93+
# Tooling test
94+
RUN clang-format --version && \
95+
markdownlint --version && \
96+
yamllint --version && \
97+
cppcheck --version
98+
9099
# Code source
91100
COPY ./src ${WORKDIR}/src
92101
COPY ./vcpkg.json ${WORKDIR}/vcpkg.json

0 commit comments

Comments
 (0)