Skip to content

Introduce precompiled binaries for fuzz test #1119

Introduce precompiled binaries for fuzz test

Introduce precompiled binaries for fuzz test #1119

Workflow file for this run

# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: thread sanitizer
# https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
permissions:
# Grant read permissions to repository in case it is not a forked public
# repository, but a private repository that was created manually.
contents: read
# Grant read permissions to private container images.
packages: read
on:
push:
paths:
- '**'
- '!**.md'
- '!**/.clang-format'
- '!**/COPYING'
- '!**/LICENSE'
- '!.github/**'
- '.github/workflows/tsan.yml'
- '!.gitignore'
- '!cmake/manifests/**'
- 'cmake/manifests/linux/**'
- '!container/**'
- '!docs/**'
- '!scripts/**'
pull_request:
paths:
- '**'
- '!**.md'
- '!**/.clang-format'
- '!**/COPYING'
- '!**/LICENSE'
- '!.github/**'
- '.github/workflows/tsan.yml'
- '!.gitignore'
- '!cmake/manifests/**'
- 'cmake/manifests/linux/**'
- '!container/**'
- '!docs/**'
- '!scripts/**'
jobs:
build:
runs-on: ubuntu-22.04
container:
image: ghcr.io/intel/fpga-runtime-for-opencl/ubuntu-22.04-dev:main
continue-on-error: true
steps:
- name: checkout code
uses: actions/checkout@v4
- name: query distribution
run: cat /etc/os-release
- name: create build directory
run: mkdir build
- name: create build files
run: |
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Debug -DACL_TSAN=ON
env:
CC: gcc
CXX: g++
- name: build runtime
run: |
cd build
ninja -v -k0
- name: test runtime
run: |
cd build
ctest -V
- name: tsan result
uses: actions/upload-artifact@v4
if: always()
with:
name: tsan-report
path: build/Testing/Temporary/LastTest.log