Skip to content

Commit a98d4e0

Browse files
authored
Update test.yml to fix checksum (#25)
* Update test.yml to fix checksum * Update test.yml to update name
1 parent b74a7d1 commit a98d4e0

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Test Static Binaries
22

33
on:
44
workflow_dispatch:
@@ -12,44 +12,48 @@ jobs:
1212
os: [ ubuntu-latest, macos-latest, windows-latest ]
1313
include:
1414
- os: ubuntu-latest
15-
pattern: linux-amd64
15+
bin_pattern: linux-amd64
16+
checksum_pattern: linux-amd64
1617
- os: macos-latest
17-
pattern: macosx-amd64
18+
bin_pattern: macosx-amd64
19+
checksum_pattern: macosx-amd64
1820
- os: windows-latest
19-
pattern: windows-amd64.exe
21+
bin_pattern: windows-amd64.exe
22+
checksum_pattern: windows-amd64
2023
fail-fast: false
2124
env:
2225
GH_TOKEN: ${{ secrets.TOKEN }}
23-
bin_suffix: '${{ matrix.clang-version }}_${{ matrix.pattern }}'
26+
bin_suffix: '${{ matrix.clang-version }}_${{ matrix.bin_pattern }}'
27+
checksum_suffix: '${{ matrix.clang-version }}_${{ matrix.checksum_pattern }}.sha512sum'
2428
steps:
2529
- uses: actions/checkout@v4
2630
- name: Download and check clang version
2731
shell: bash
2832
run: |
2933
gh release download --pattern 'clang-format-${{ env.bin_suffix }}'
30-
gh release download --pattern 'clang-format-${{ env.bin_suffix }}.sha512sum'
34+
gh release download --pattern 'clang-format-${{ env.checksum_suffix }}'
3135
chmod +x clang-format-${{ env.bin_suffix }}
3236
echo "== Output clang-format version"
3337
./clang-format-${{ env.bin_suffix }} --version
34-
cat clang-format-${{ env.bin_suffix }}.sha512sum
38+
cat clang-format-${{ env.checksum_suffix }}
3539
3640
gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}'
37-
gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}.sha512sum'
41+
gh release download --pattern 'clang-tidy-${{ env.checksum_suffix }}'
3842
chmod +x clang-tidy-${{ env.bin_suffix }}
3943
echo "== Output clang-tidy version"
4044
./clang-tidy-${{ env.bin_suffix }} --version
41-
cat clang-tidy-${{ env.bin_suffix }}.sha512sum
45+
cat clang-tidy-${{ env.checksum_suffix }}
4246
4347
gh release download --pattern 'clang-query-${{ env.bin_suffix }}'
44-
gh release download --pattern 'clang-query-${{ env.bin_suffix }}.sha512sum'
48+
gh release download --pattern 'clang-query-${{ env.checksum_suffix }}'
4549
chmod +x clang-query-${{ env.bin_suffix }}
4650
echo "== Output clang-query version"
4751
./clang-query-${{ env.bin_suffix }} --version
48-
cat clang-query-${{ env.bin_suffix }}.sha512sum
52+
cat clang-query-${{ env.checksum_suffix }}
4953
5054
gh release download --pattern 'clang-apply-replacements-${{ env.bin_suffix }}'
51-
gh release download --pattern 'clang-apply-replacements-${{ env.bin_suffix }}.sha512sum'
55+
gh release download --pattern 'clang-apply-replacements-${{ env.checksum_suffix }}'
5256
chmod +x clang-apply-replacements-${{ env.bin_suffix }}
5357
echo "== Output clang-apply-replacements version"
5458
./clang-apply-replacements-${{ env.bin_suffix }} --version
55-
cat clang-apply-replacements-${{ env.bin_suffix }}.sha512sum
59+
cat clang-apply-replacements-${{ env.checksum_suffix }}

0 commit comments

Comments
 (0)