blob: d99be4d3a8c639037411bb9a6ff7624fcff887f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
name: Formatting tools setup
description: Performs setup common to the code formatting actions
runs:
using: composite
steps:
- name: install gersemi
shell: bash
run: |
pip3 install gersemi colorama
- name: install clang-format
shell: bash
run: |
tmpdir=$(mktemp -d)
curl -L -H "Authorization: token ${{github.token}}" \
-o "$tmpdir/clang-format" \
https://github.com/shader-slang/slang-binaries/raw/306d22efc0f5f72c7230b0b6b7c99f03c46995bd/clang-format/x86_64-linux/bin/clang-format
chmod +x "$tmpdir/clang-format"
echo "$tmpdir" >> $GITHUB_PATH
|