Skip to content

Commit

Permalink
feat: test clang tools static binaries (#10)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
shenxianpeng committed Jan 8, 2024
1 parent be694ee commit 7b71d88
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: clang-tools-static-amd64
name: Build

on:
push:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on:
workflow_dispatch:

jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
clang-version: [ 7, 8, 9, 10, 11, 12, 12.0.1, 13, 14, 15, 16, 17 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- os: ubuntu-latest
pattern: linux-amd64
- os: macos-latest
pattern: macosx-amd64
- os: windows-latest
pattern: windows-amd64.exe
fail-fast: false
env:
GH_TOKEN: ${{ secrets.TOKEN }}
bin_suffix: '${{ matrix.clang-version }}_${{ matrix.pattern }}'
steps:
- uses: actions/checkout@v4
- name: Download and check clang version
shell: bash
run: |
gh release download --pattern 'clang-format-${{ env.bin_suffix }}'
chmod +x clang-format-${{ env.bin_suffix }}
echo "== Output clang-format version"
./clang-format-${{ env.bin_suffix }} --version
gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}'
chmod +x clang-tidy-${{ env.bin_suffix }}
echo "== Output clang-tidy version"
./clang-tidy-${{ env.bin_suffix }} --version
gh release download --pattern 'clang-query-${{ env.bin_suffix }}'
chmod +x clang-query-${{ env.bin_suffix }}
echo "== Output clang-query version"
./clang-query-${{ env.bin_suffix }} --version
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# clang-tools static binaries

[![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)
[![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)

Includes clang-format, clang-tidy and clang-query.

## Download
Expand Down

0 comments on commit 7b71d88

Please sign in to comment.