Skip to content

Commit 19fa896

Browse files
committed
fix: try to fix ci workflow test error (#65)
* fix: try to fix ci workflow test error * fix: try to fix ci workflow test error * fix: try to fix ci workflow test error * fix: try to fix ci workflow test error * fix: try to fix ci workflow test error
1 parent d8e3d39 commit 19fa896

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
paths:
77
- 'Dockerfile*'
88
- 'docker-bake.hcl'
9+
- '**.yml'
910
pull_request:
1011
branches: [ master ]
1112
paths:
1213
- 'Dockerfile*'
1314
- 'docker-bake.hcl'
15+
- '**.yml'
1416
workflow_dispatch:
1517

1618
jobs:
@@ -42,22 +44,26 @@ jobs:
4244
- name: Test all images
4345
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
4446
run: |
45-
echo "start to test clang-tools:all"
47+
echo "start to test clang-tools images"
48+
docker images
49+
4650
clang_versions="17 16 15 14 13 12 11 10 9"
4751
for clang_version in ${clang_versions}; do
52+
echo "testing clang_version $clang_version"
4853
docker run ghcr.io/cpp-linter/clang-tools:all clang-format-$clang_version --version | grep -E "clang-format version $clang_version"
4954
docker run ghcr.io/cpp-linter/clang-tools:all clang-tidy-$clang_version --version | grep "LLVM version $clang_version"
5055
done
5156
5257
all_tags="17 16 15 14 13 12 11 10 9 8 7"
5358
for tag in ${all_tags}; do
54-
echo "start to test clang-tools:tag"
59+
echo "testing clang-tools:tag"
5560
docker run ghcr.io/cpp-linter/clang-tools:$tag clang-format --version | grep -E "clang-format version $tag"
5661
docker run ghcr.io/cpp-linter/clang-tools:$tag clang-tidy --version | grep "LLVM version $tag"
5762
done
58-
# docker run ghcr.io/cpp-linter/clang-tools:$tag-3.18 clang-format --version | grep -E "clang-format version"
59-
# docker run ghcr.io/cpp-linter/clang-tools:$tag-3.18 clang-tidy --version | grep "LLVM version"
63+
echo "testing clang-tools:16-alpine"
64+
docker run ghcr.io/cpp-linter/clang-tools:16-alpine clang-format --version | grep -E "clang-format version"
65+
docker run ghcr.io/cpp-linter/clang-tools:16-alpine clang-tidy --version | grep "LLVM version"
6066
6167
- name: Publish all images
62-
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master'
68+
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
6369
run: docker buildx bake --file docker-bake.hcl --push

0 commit comments

Comments
 (0)