Skip to content

Commit a2d1eff

Browse files
authored
feat: support clang-apply-replacements (#11)
1 parent f6d3c73 commit a2d1eff

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Build
1+
name: Build amd64
22

33
on:
44
push:
55
branches: [ master ]
66
paths:
7-
- ".github/workflows/clang-tools-amd64.yml"
7+
- ".github/workflows/build-amd64.yml"
88
workflow_dispatch:
99

1010
jobs:
@@ -124,7 +124,7 @@ jobs:
124124
- name: cmake
125125
run: cmake -S ${{ matrix.release }}/llvm -B ${{ matrix.release }}/build ${{ env.COMMON_CMAKE_ARGS }} ${{ matrix.os-cmake-args }} ${{ matrix.extra-cmake-args }}
126126
- name: build
127-
run: cmake --build ${{ matrix.release }}/build ${{ matrix.build-args }} --target clang-format clang-query clang-tidy
127+
run: cmake --build ${{ matrix.release }}/build ${{ matrix.build-args }} --target clang-format clang-query clang-tidy clang-apply-replacements
128128
- name: print dependencies
129129
if: ${{ matrix.os == 'macosx' }}
130130
run: otool -L ${{ matrix.release }}/build/bin/clang-format
@@ -134,17 +134,20 @@ jobs:
134134
mv clang-format${{ matrix.dotexe }} clang-format-${{ env.suffix }}${{ matrix.dotexe }}
135135
mv clang-query${{ matrix.dotexe }} clang-query-${{ env.suffix }}${{ matrix.dotexe }}
136136
mv clang-tidy${{ matrix.dotexe }} clang-tidy-${{ env.suffix }}${{ matrix.dotexe }}
137+
mv clang-apply-replacements${{ matrix.dotexe }} clang-apply-replacements-${{ env.suffix }}${{ matrix.dotexe }}
137138
- name: create and print sha512sum
138139
shell: bash
139140
run: |
140141
cd ${{ matrix.release }}${{ matrix.bindir }}
141142
${{ matrix.shacmd }} clang-format-${{ env.suffix }} > clang-format-${{ env.suffix }}.sha512sum
142143
${{ matrix.shacmd }} clang-query-${{ env.suffix }} > clang-query-${{ env.suffix }}.sha512sum
143144
${{ matrix.shacmd }} clang-tidy-${{ env.suffix }} > clang-tidy-${{ env.suffix }}.sha512sum
145+
${{ matrix.shacmd }} clang-apply-replacements-${{ env.suffix }} > clang-apply-replacements-${{ env.suffix }}.sha512sum
144146
echo "Checksums are: "
145147
cat clang-format-${{ env.suffix }}.sha512sum
146148
cat clang-query-${{ env.suffix }}.sha512sum
147149
cat clang-tidy-${{ env.suffix }}.sha512sum
150+
cat clang-apply-replacements-${{ env.suffix }}.sha512sum
148151
- name: upload artifacts
149152
uses: actions/upload-artifact@v3
150153
with:

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
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)
3+
[![Build](https://github.com/cpp-linter/clang-tools-static-binaries/actions/workflows/build-amd64.yml/badge.svg)](https://github.com/cpp-linter/clang-tools-static-binaries/actions/workflows/build-amd64.yml)
44
[![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)
55
![](https://img.shields.io/badge/platform-linux--64%20%7C%20win--64%20%7C%20osx--64%20-blue)
66

7-
Includes clang-format, clang-tidy and clang-query.
7+
Includes clang-format, clang-tidy, clang-query and clang-apply-replacements.
8+
9+
The supported versions are as follows:
10+
11+
|OS/Version |17|16|15|14|13|12|11|10|9|8|7|
12+
|---|---|---|---|---|---|---|---|---|---|---|---|
13+
|Linux 64|✔️|✔️|✔️|✔️|✔️|✔️|✔️|✔️| ✔️|✔️|✔️|✔️|
14+
|Window 64|✔️|✔️|✔️|✔️|✔️|✔️|✔️|✔️| ✔️|✔️|✔️|✔️|
15+
|macOS 64|✔️|✔️|✔️|✔️|✔️|✔️|✔️|✔️| ✔️|✔️|✔️|✔️|
816

917
## Download
1018

@@ -21,6 +29,8 @@ These binaries aim to:
2129
- be as small as possible
2230
- not require any additional dependencies apart from OS itself
2331

32+
This repository ([cpp-linter/clang-tools-static-binaries](https://github.com/cpp-linter/clang-tools-static-binaries)) is forked from [muttleyxd/clang-tools-static-binaries](https://github.com/muttleyxd/clang-tools-static-binaries).
33+
2434
## How can I trust this repository?
2535

2636
- Verify sha512sums of binaries against output from GitHub Actions to make sure binaries are not modified

0 commit comments

Comments
 (0)