yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Ellie Hermaszewskabump and pin cmake formatter version (#7800)3e42d1bf2

master
1.1 KiB37 linesraw
1name: Formatting tools setup
2
3description: Performs setup common to the code formatting actions
4
5runs:
6  using: composite
7  steps:
8    - name: install gersemi
9      shell: bash
10      run: |
11        pip3 install gersemi==0.21 colorama
12
13    - name: install clang-format
14      shell: bash
15      run: |
16        tmpdir=$(mktemp -d)
17        curl -L -H "Authorization: token ${{github.token}}" \
18          -o "$tmpdir/clang-format" \
19          https://github.com/shader-slang/slang-binaries/raw/306d22efc0f5f72c7230b0b6b7c99f03c46995bd/clang-format/x86_64-linux/bin/clang-format
20        chmod +x "$tmpdir/clang-format"
21        echo "$tmpdir" >> $GITHUB_PATH
22
23    - name: install prettier
24      shell: bash
25      run: |
26        npm install -g prettier@3.3.3
27        echo "$(npm bin -g)" >> $GITHUB_PATH
28
29    - name: install shfmt
30      shell: bash
31      run: |
32        tmpdir=$(mktemp -d)
33        curl -L -H "Authorization: token ${{github.token}}" \
34          -o "$tmpdir/shfmt" \
35          https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_amd64
36        chmod +x "$tmpdir/shfmt"
37        echo "$tmpdir" >> $GITHUB_PATH