Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable TSAN builds on CI #7797

Merged
merged 4 commits into from
Jun 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
name: Test Suites - Linux
timeout-minutes: 60

strategy:
matrix:
type: [no_tsan, with_tsan]

if: github.actor != 'restyled-io[bot]'
runs-on: ubuntu-latest

Expand Down Expand Up @@ -61,11 +65,23 @@ jobs:
- name: Build all clusters app
timeout-minutes: 5
run: |
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone/ chip_config_network_layer_ble=false
case ${{ matrix.type }} in
"no_tsan") GN_ARGS='is_tsan=false';;
"with_tsan") GN_ARGS='is_tsan=true';;
*) ;;
esac

scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone/ chip_config_network_layer_ble=false "$GN_ARGS"
- name: Build chip-tool
timeout-minutes: 5
run: |
scripts/examples/gn_build_example.sh examples/chip-tool out/debug/standalone/
case ${{ matrix.type }} in
"no_tsan") GN_ARGS='is_tsan=false';;
"with_tsan") GN_ARGS='is_tsan=true';;
*) ;;
esac

scripts/examples/gn_build_example.sh examples/chip-tool out/debug/standalone/ "$GN_ARGS"
- name: Copy objdir
run: |
# The idea is to not upload our objdir unless builds have
Expand Down Expand Up @@ -95,7 +111,6 @@ jobs:
test_suites_darwin:
name: Test Suites - Darwin
timeout-minutes: 60

if: github.actor != 'restyled-io[bot]'
runs-on: macos-latest

Expand Down