-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (34 loc) · 1 KB
/
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
39
40
name: 🔍 Check Formatting
on:
push:
pull_request:
branches:
- master
workflow_dispatch:
inputs:
debug:
type: boolean
description: Enable Debugging
jobs:
check-coding-style:
runs-on: ubuntu-latest
container: ghcr.io/viennatools/vienna-builder:suite-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