Skip to content

Commit b4821ad

Browse files
authored
Move sanitizer builds to builder jobs (#316)
1 parent b652af1 commit b4821ad

File tree

4 files changed

+28
-147
lines changed

4 files changed

+28
-147
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,34 @@ jobs:
5858
docker pull $DOCKER_IMAGE
5959
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --compiler=clang-${{ matrix.version }}
6060
61+
clang-tsan:
62+
runs-on: ubuntu-latest
63+
strategy:
64+
matrix:
65+
version: [11]
66+
steps:
67+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
68+
- name: Build ${{ env.PACKAGE_NAME }}
69+
run: |
70+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
71+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ env.LINUX_BASE_IMAGE }}:${{ env.BUILDER_VERSION }}
72+
docker pull $DOCKER_IMAGE
73+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --compiler=clang-${{ matrix.version }} --cmake-extra="-DENABLE_SANITIZERS=ON -DSANITIZERS=\",thread\""
74+
75+
clang-asan:
76+
runs-on: ubuntu-latest
77+
strategy:
78+
matrix:
79+
version: [11]
80+
steps:
81+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
82+
- name: Build ${{ env.PACKAGE_NAME }}
83+
run: |
84+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
85+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ env.LINUX_BASE_IMAGE }}:${{ env.BUILDER_VERSION }}
86+
docker pull $DOCKER_IMAGE
87+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --compiler=clang-${{ matrix.version }} --cmake-extra="-DENABLE_SANITIZERS=ON -DSANITIZERS=\",address,undefined\""
88+
6189
gcc-compat:
6290
runs-on: ubuntu-latest
6391
strategy:

.github/workflows/clang-asan-ubsan.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/clang-tsan.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

build-deps.sh

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)