Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ jobs:
run: |
asdf plugin add ${{ matrix.tool.plugin }} https://github.com/cpp-linter/asdf-clang-tools.git

- name: Install and test ${{ matrix.tool.plugin }} ${{ matrix.version }} on ${{ matrix.os }}
- name: Retry plugin install
uses: nick-fields/retry@v3
with:
max_attempts: 5
timeout_minutes: 10
command: asdf install ${{ matrix.tool.plugin }} ${{ matrix.version }}
env:
ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Test ${{ matrix.tool.plugin }} ${{ matrix.version }} on ${{ matrix.os }}
run: |
asdf install ${{ matrix.tool.plugin }} ${{ matrix.version }}
asdf set ${{ matrix.tool.plugin }} ${{ matrix.version }}
which ${{ matrix.tool.plugin }}
${{ matrix.tool.command }}
env:
ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -euo pipefail
ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE=${ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE:-0}
ASDF_CLANG_TOOLS_LINUX_IGNORE_ARCH=${ASDF_CLANG_TOOLS_LINUX_IGNORE_ARCH:-0}

GH_REPO="cpp-linter/clang-tools-static-binaries"
GH_REPO="cpp-linter/clang-tools-static-binaries/"
GH_REPO_TAG="master-b35c5633"
PLUGIN_NAME="clang-tools"
USE_KERNEL=
USE_ARCH=
Expand Down Expand Up @@ -47,7 +48,7 @@ sort_versions() {

fetch_all_assets() {
curl -s -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${GH_REPO}/releases |
https://api.github.com/repos/${GH_REPO}/releases/tag/${GH_REPO_TAG} |
jq -r '.[0].assets[] | "\(.name) \(.browser_download_url)"'
}

Expand Down