Skip to content

Update test.yml to fix checksum #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test Static Binaries

on:
workflow_dispatch:
Expand All @@ -12,44 +12,48 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- os: ubuntu-latest
pattern: linux-amd64
bin_pattern: linux-amd64
checksum_pattern: linux-amd64
- os: macos-latest
pattern: macosx-amd64
bin_pattern: macosx-amd64
checksum_pattern: macosx-amd64
- os: windows-latest
pattern: windows-amd64.exe
bin_pattern: windows-amd64.exe
checksum_pattern: windows-amd64
fail-fast: false
env:
GH_TOKEN: ${{ secrets.TOKEN }}
bin_suffix: '${{ matrix.clang-version }}_${{ matrix.pattern }}'
bin_suffix: '${{ matrix.clang-version }}_${{ matrix.bin_pattern }}'
checksum_suffix: '${{ matrix.clang-version }}_${{ matrix.checksum_pattern }}.sha512sum'
steps:
- uses: actions/checkout@v4
- name: Download and check clang version
shell: bash
run: |
gh release download --pattern 'clang-format-${{ env.bin_suffix }}'
gh release download --pattern 'clang-format-${{ env.bin_suffix }}.sha512sum'
gh release download --pattern 'clang-format-${{ env.checksum_suffix }}'
chmod +x clang-format-${{ env.bin_suffix }}
echo "== Output clang-format version"
./clang-format-${{ env.bin_suffix }} --version
cat clang-format-${{ env.bin_suffix }}.sha512sum
cat clang-format-${{ env.checksum_suffix }}

gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}'
gh release download --pattern 'clang-tidy-${{ env.bin_suffix }}.sha512sum'
gh release download --pattern 'clang-tidy-${{ env.checksum_suffix }}'
chmod +x clang-tidy-${{ env.bin_suffix }}
echo "== Output clang-tidy version"
./clang-tidy-${{ env.bin_suffix }} --version
cat clang-tidy-${{ env.bin_suffix }}.sha512sum
cat clang-tidy-${{ env.checksum_suffix }}

gh release download --pattern 'clang-query-${{ env.bin_suffix }}'
gh release download --pattern 'clang-query-${{ env.bin_suffix }}.sha512sum'
gh release download --pattern 'clang-query-${{ env.checksum_suffix }}'
chmod +x clang-query-${{ env.bin_suffix }}
echo "== Output clang-query version"
./clang-query-${{ env.bin_suffix }} --version
cat clang-query-${{ env.bin_suffix }}.sha512sum
cat clang-query-${{ env.checksum_suffix }}

gh release download --pattern 'clang-apply-replacements-${{ env.bin_suffix }}'
gh release download --pattern 'clang-apply-replacements-${{ env.bin_suffix }}.sha512sum'
gh release download --pattern 'clang-apply-replacements-${{ env.checksum_suffix }}'
chmod +x clang-apply-replacements-${{ env.bin_suffix }}
echo "== Output clang-apply-replacements version"
./clang-apply-replacements-${{ env.bin_suffix }} --version
cat clang-apply-replacements-${{ env.bin_suffix }}.sha512sum
cat clang-apply-replacements-${{ env.checksum_suffix }}