-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (32 loc) · 997 Bytes
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 🔍 Check Formatting
on:
push:
pull_request:
workflow_dispatch:
inputs:
debug:
type: boolean
description: Enable Debugging
jobs:
check-coding-style:
runs-on: ubuntu-latest
container: ghcr.io/viennatools/vienna-builder:vtk-python
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
with:
set-safe-directory: true
- name: 📋 Install additional dependencies
if: ${{ github.event.inputs.debug == 'true' }}
run: apk add tmate
- name: 🐛 Debug Issues
if: ${{ github.event.inputs.debug == 'true' }}
uses: mxschmitt/action-tmate@v3
with:
install-dependencies: false
limit-access-to-actor: true
- name: 🔍 Check Format
run: |
git config --global --add safe.directory $(pwd) # "set-safe-directory" seems bugged in actions/checkout@v4
cmake -B build
cmake --build build --target format-check