-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also make the sanitizer tests nightly.
- Loading branch information
Showing
2 changed files
with
45 additions
and
33 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,45 @@ | ||
name: "test-p4c-ubuntu-20.04-sanitizers" | ||
|
||
on: | ||
schedule: | ||
# Every day on midnight UTC | ||
- cron: '0 0 * * *' | ||
|
||
# Cancel any preceding run on the pull request. | ||
concurrency: | ||
group: test-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
# Build with clang and test p4c on Ubuntu 20.04. | ||
test-ubuntu20-clang-sanitizers: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-20.04 | ||
env: | ||
CTEST_PARALLEL_LEVEL: 2 | ||
IMAGE_TYPE: test | ||
COMPILE_WITH_CLANG: ON | ||
BUILD_AUTO_VAR_INIT_PATTERN: ON | ||
ENABLE_SANITIZERS: ON | ||
UBSAN_OPTIONS: print_stacktrace=1 | ||
ASAN_OPTIONS: print_stacktrace=1:detect_leaks=0 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/ccache-action@v1 | ||
with: | ||
key: test-${{ runner.os }}-clang | ||
max-size: 1000M | ||
|
||
- name: Build (Ubuntu 20.04, Clang, Sanitizers) | ||
run: | | ||
tools/ci-build.sh | ||
- name: Run tests (Ubuntu 20.04) | ||
# Need to use sudo for the eBPF kernel tests. | ||
run: sudo -E ctest --output-on-failure --schedule-random | ||
working-directory: ./build |