diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c06842..bb3b535 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ jobs: name: asdf plugin test runs-on: ${{ matrix.os }} strategy: + max-parallel: 4 fail-fast: false matrix: os: [ubuntu-latest, macos-13] @@ -34,12 +35,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 }}