From 40da6b8bdf9974dc2a6ea873d7743c94101f3c7e Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 4 Jun 2025 02:14:31 +0300 Subject: [PATCH 1/3] fix: use retry action for install --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c06842..cefab6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,9 +34,15 @@ 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 }} + + - 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 }} From e682200233674157b3cb0ba178306ce04d92f071 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 4 Jun 2025 02:17:51 +0300 Subject: [PATCH 2/3] fix: use retry action for install --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cefab6e..2748d83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,12 +40,12 @@ jobs: 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 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 }} From b8b43772e31b39546a59a8e036228efb3aa3c78d Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 4 Jun 2025 02:35:41 +0300 Subject: [PATCH 3/3] add specfic tag --- lib/utils.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils.bash b/lib/utils.bash index cc716cb..24d74aa 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -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= @@ -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)"' }