-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug for curl initialization and DRY for linux-sanitizers
- Loading branch information
1 parent
eb9032c
commit 2341fc0
Showing
3 changed files
with
73 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Linux sanitizers | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
linux-sanitizers: | ||
strategy: | ||
matrix: | ||
sanitizer: | ||
- ADDRESS_SANITIZER | ||
- UNDEFINED_BEHAVIOR_SANITIZER | ||
# - THREAD_SANITIZER | ||
# - MEMORY_SANITIZER | ||
config: | ||
- name: With Common LWS | ||
cmake_flags: "-DBUILD_TEST=ON -DBUILD_COMMON_LWS=ON" | ||
|
||
fail-fast: false | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: public.ecr.aws/ubuntu/ubuntu:20.04_stable | ||
|
||
timeout-minutes: 80 | ||
|
||
env: | ||
CC: clang | ||
CXX: clang++ | ||
AWS_KVS_LOG_LEVEL: 7 | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
apt-get update | ||
apt-get -y install git build-essential automake pkg-config cmake clang | ||
- name: Build repository - ${{ matrix.config.name }} | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake .. -D${{ matrix.sanitizer }}=ON ${{ matrix.config.cmake_flags }} | ||
make -j$(nproc) | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-session-name: ${{ secrets.AWS_ROLE_SESSION_NAME }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
role-duration-seconds: 10800 | ||
|
||
- name: Run tests - ${{ matrix.config.name }} | ||
working-directory: ./build | ||
run: | | ||
timeout --signal=SIGABRT 150m ./tst/producer_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters