Skip to content

Commit 7b71d88

Browse files
authored
feat: test clang tools static binaries (#10)
* feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64 * feat: test clang-tools-static-amd64
1 parent be694ee commit 7b71d88

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

.github/workflows/clang-tools-amd64.yml renamed to .github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: clang-tools-static-amd64
1+
name: Build
22

33
on:
44
push:

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
install:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
clang-version: [ 7, 8, 9, 10, 11, 12, 12.0.1, 13, 14, 15, 16, 17 ]
12+
os: [ ubuntu-latest, macos-latest, windows-latest ]
13+
include:
14+
- os: ubuntu-latest
15+
pattern: linux-amd64
16+
- os: macos-latest
17+
pattern: macosx-amd64
18+
- os: windows-latest
19+
pattern: windows-amd64.exe
20+
fail-fast: false
21+
env:
22+
GH_TOKEN: ${{ secrets.TOKEN }}
23+
bin_suffix: '${{ matrix.clang-version }}_${{ matrix.pattern }}'
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Download and check clang version
27+
shell: bash
28+
run: |
29+
gh release download --pattern 'clang-format-${{ env.bin_suffix }}'
30+
chmod +x clang-format-${{ env.bin_suffix }}
31+
echo "== Output clang-format version"
32+
./clang-format-${{ env.bin_suffix }} --version
33+
34+
gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}'
35+
chmod +x clang-tidy-${{ env.bin_suffix }}
36+
echo "== Output clang-tidy version"
37+
./clang-tidy-${{ env.bin_suffix }} --version
38+
39+
gh release download --pattern 'clang-query-${{ env.bin_suffix }}'
40+
chmod +x clang-query-${{ env.bin_suffix }}
41+
echo "== Output clang-query version"
42+
./clang-query-${{ env.bin_suffix }} --version

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# clang-tools static binaries
22

3+
[![Build](https://github.com/cpp-linter/clang-tools-static-binaries/actions/workflows/build.yml/badge.svg)](https://github.com/cpp-linter/clang-tools-static-binaries/actions/workflows/build.yml)
4+
[![Test](https://github.com/cpp-linter/clang-tools-static-binaries/actions/workflows/test.yml/badge.svg)](https://github.com/cpp-linter/clang-tools-static-binaries/actions/workflows/test.yml)
5+
36
Includes clang-format, clang-tidy and clang-query.
47

58
## Download

0 commit comments

Comments
 (0)