1
- name : Test Static Binaries
1
+ name : Test static binaries
2
2
3
3
on :
4
4
workflow_dispatch :
5
-
5
+ inputs :
6
+ tag :
7
+ description : ' The release tag you want to download and test'
8
+ default : ' '
9
+ required : true
10
+ type : string
11
+
6
12
jobs :
7
13
install :
8
14
runs-on : ${{ matrix.os }}
@@ -27,33 +33,37 @@ jobs:
27
33
checksum_suffix : ' ${{ matrix.clang-version }}_${{ matrix.checksum_pattern }}.sha512sum'
28
34
steps :
29
35
- uses : actions/checkout@v4
30
- - name : Download and check clang version
36
+ - name : Download and check clang versions
31
37
shell : bash
32
38
run : |
33
- gh release download --pattern 'clang-format-${{ env.bin_suffix }}'
34
- gh release download --pattern 'clang-format-${{ env.checksum_suffix }}'
39
+ gh release download ${{ inputs.tag }} --pattern 'clang-format-${{ env.bin_suffix }}'
40
+ gh release download ${{ inputs.tag }} --pattern 'clang-format-${{ env.checksum_suffix }}'
41
+ echo "== Output clang-format checksum"
42
+ cat clang-format-${{ env.checksum_suffix }}
35
43
chmod +x clang-format-${{ env.bin_suffix }}
36
44
echo "== Output clang-format version"
37
45
./clang-format-${{ env.bin_suffix }} --version
38
- cat clang-format-${{ env.checksum_suffix }}
39
46
40
- gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}'
41
- gh release download --pattern 'clang-tidy-${{ env.checksum_suffix }}'
47
+ gh release download ${{ inputs.tag }} --pattern 'clang-tidy-${{ env.bin_suffix }}'
48
+ gh release download ${{ inputs.tag }} --pattern 'clang-tidy-${{ env.checksum_suffix }}'
49
+ echo "== Output clang-tidy checksum"
50
+ cat clang-tidy-${{ env.checksum_suffix }}
42
51
chmod +x clang-tidy-${{ env.bin_suffix }}
43
52
echo "== Output clang-tidy version"
44
53
./clang-tidy-${{ env.bin_suffix }} --version
45
- cat clang-tidy-${{ env.checksum_suffix }}
46
54
47
- gh release download --pattern 'clang-query-${{ env.bin_suffix }}'
48
- gh release download --pattern 'clang-query-${{ env.checksum_suffix }}'
55
+ gh release download ${{ inputs.tag }} --pattern 'clang-query-${{ env.bin_suffix }}'
56
+ gh release download ${{ inputs.tag }} --pattern 'clang-query-${{ env.checksum_suffix }}'
57
+ echo "== Output clang-query checksum"
58
+ cat clang-query-${{ env.checksum_suffix }}
49
59
chmod +x clang-query-${{ env.bin_suffix }}
50
60
echo "== Output clang-query version"
51
61
./clang-query-${{ env.bin_suffix }} --version
52
- cat clang-query-${{ env.checksum_suffix }}
53
-
54
- gh release download --pattern 'clang-apply-replacements-${{ env.bin_suffix }}'
55
- gh release download --pattern 'clang-apply-replacements-${{ env.checksum_suffix }}'
62
+
63
+ gh release download ${{ inputs.tag }} --pattern 'clang-apply-replacements-${{ env.bin_suffix }}'
64
+ gh release download ${{ inputs.tag }} --pattern 'clang-apply-replacements-${{ env.checksum_suffix }}'
65
+ echo "== Output clang-apply-replacements checksum"
66
+ cat clang-apply-replacements-${{ env.checksum_suffix }}
56
67
chmod +x clang-apply-replacements-${{ env.bin_suffix }}
57
68
echo "== Output clang-apply-replacements version"
58
69
./clang-apply-replacements-${{ env.bin_suffix }} --version
59
- cat clang-apply-replacements-${{ env.checksum_suffix }}
0 commit comments