diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 1bb57c3e..a0372c1d 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -6,14 +6,19 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: doc_verify: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v5 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: "20" @@ -31,6 +36,7 @@ jobs: remote_install: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: @@ -67,6 +73,7 @@ jobs: local_install: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: @@ -77,7 +84,7 @@ jobs: - uses: actions/checkout@v5 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: "1.23" @@ -118,6 +125,7 @@ jobs: local_install_full: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: @@ -128,7 +136,7 @@ jobs: - uses: actions/checkout@v5 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: "1.23" diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index e946028f..3ef78aff 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -6,9 +6,14 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: fmt: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 17614d34..7fb0ebed 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,9 +9,14 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: diff --git a/.github/workflows/llgo.yml b/.github/workflows/llgo.yml index bd6d4f70..b0f1edeb 100644 --- a/.github/workflows/llgo.yml +++ b/.github/workflows/llgo.yml @@ -9,9 +9,14 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: download-model: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Download model file run: | @@ -28,6 +33,7 @@ jobs: llgo: needs: download-model continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: @@ -87,7 +93,7 @@ jobs: echo "LLGO_ROOT=$GITHUB_WORKSPACE" >> $GITHUB_ENV - name: Set up Go for testing - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{matrix.go}} @@ -133,6 +139,7 @@ jobs: test: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: @@ -166,7 +173,7 @@ jobs: echo "LLGO_ROOT=$GITHUB_WORKSPACE" >> $GITHUB_ENV - name: Set up Go for testing - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{matrix.go}} @@ -176,6 +183,7 @@ jobs: hello: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: [ubuntu-24.04, macos-latest] @@ -234,6 +242,7 @@ jobs: cross-compile: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: [macos-latest] diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 2acd9152..49399c70 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -7,6 +7,10 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: setup: runs-on: ubuntu-latest @@ -26,6 +30,7 @@ jobs: populate-darwin-sysroot: runs-on: macos-latest + timeout-minutes: 30 needs: setup steps: - name: Check out code @@ -52,6 +57,7 @@ jobs: populate-linux-sysroot: runs-on: ubuntu-latest needs: setup + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v5 diff --git a/.github/workflows/targets.yml b/.github/workflows/targets.yml index c704a675..c11c58e8 100644 --- a/.github/workflows/targets.yml +++ b/.github/workflows/targets.yml @@ -7,9 +7,14 @@ on: pull_request: branches: ["**"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: llgo: continue-on-error: true + timeout-minutes: 30 strategy: matrix: os: