Skip to content

test clang tools static binaries #14

test clang tools static binaries

test clang tools static binaries #14

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
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 ${{ matrix.clang-version }}
shell: bash
run: |
echo ==============================================
gh release download --pattern 'clang-format-${{ env.bin_suffix }}'
chmod +x clang-format-${{ env.bin_suffix }}
./clang-format-${{ env.bin_suffix }} --version
echo ==============================================
gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}'
chmod +x clang-tidy-${{ env.bin_suffix }}
./clang-tidy-${{ env.bin_suffix }} --version
echo ==============================================
gh release download --pattern 'clang-query-${{ env.bin_suffix }}'
chmod +x clang-query-${{ env.bin_suffix }}
./clang-query-${{ env.bin_suffix }} --version
ls clang*