Skip to content

Some safe runtime clean-ups #1160

Some safe runtime clean-ups

Some safe runtime clean-ups #1160

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: code coverage
permissions:
# Grant read permissions to private container images.
packages: read
on:
pull_request:
paths:
- '**'
- '!**.md'
- '!**/.clang-format'
- '!**/COPYING'
- '!**/LICENSE'
- '!.github/**'
- '.github/workflows/coverage.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
steps:
- name: checkout main branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
- name: create build directory
run: mkdir build
- name: create parent build files
run: cd build && cmake -G Ninja "$GITHUB_WORKSPACE" -DCMAKE_BUILD_TYPE=Debug -DACL_CODE_COVERAGE=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: build parent runtime
run: cd build && ninja -v -k0
- name: parent runtime coverage scan
run: cd build && ctest -T Test -T Coverage
- name: save build directory for later comparison
run: mv -t "$RUNNER_TEMP" build
- name: checkout current branch
uses: actions/checkout@v4
- name: create build directory
run: mkdir build
- name: create child build files
run: cd build && cmake -G Ninja "$GITHUB_WORKSPACE" -DCMAKE_BUILD_TYPE=Debug -DACL_CODE_COVERAGE=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: build child runtime
run: cd build && ninja -v -k0
- name: child runtime coverage scan
run: cd build && ctest -T Test -T Coverage
- name: coverage status
run: ./scripts/coverage_diff.py build "$RUNNER_TEMP"/build