Skip to content

hero: Simplified openmp RTL, remove RAB until further notice #208

hero: Simplified openmp RTL, remove RAB until further notice

hero: Simplified openmp RTL, remove RAB until further notice #208

Workflow file for this run

# Copyright 2020 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# Run all lint checks
name: lint
on: [push, pull_request]
env:
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_REPOSITORY: ${{ github.repository }}
jobs:
######################
# Clang-Format Check #
######################
# Check C/C++ files for correct formatting.
# Not all sources in upstream LLVM are linted correctly.
# Hence we only run it inplace and print a diff
clangfmt:
name: C/C++ Sources
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- id: files
uses: jitterbit/get-changed-files@v1
continue-on-error: true
- name: Changed C sources
id: src_files
run: |
src_files=$(for f in ${{ steps.files.outputs.added_modified }}; do echo $f | grep '.*\.\(c\|cpp\|h\)$' ||:; done)
echo "::set-output name=src_files::$src_files"
echo "Changed: ${{ steps.files.outputs.added_modified }}"
echo "Cxx changed: $src_files"
- if: ${{ steps.src_files.outputs.src_files }}
uses: DoozyX/[email protected]
with:
clangFormatVersion: 12
extensions: 'h,cpp,c'
source: ${{ steps.src_files.outputs.src_files }}
inplace: true
- if: ${{ steps.src_files.outputs.src_files }}
run: |
git diff | tee lint.diff
- if: ${{ steps.src_files.outputs.src_files }}
uses: actions/upload-artifact@v2
with:
name: C Lint diff
path: lint.diff
- if: ${{ steps.src_files.outputs.src_files && github.event_name == 'pull_request' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
append: true
GITHUB_TOKEN: ${{ secrets.PAT }}
message: |
**[BOT]** C-source lint diff for ${{ github.sha }} available [here](https://github.com/${{ env.GITHUB_REPOSITORY }}/actions/runs/${{ env.GITHUB_RUN_ID }})
######################
# Commit message #
######################
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Check Commit Type
uses: gsactions/commit-message-checker@v1
with:
pattern: '\[[^\]]+\] .+$'
flags: 'gm'
error: 'Your first line has to contain a commit type like "[BUGFIX]".'