diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b765e942..4bf83b2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,11 +3,18 @@ name: ci on: push: branches: [main] + paths-ignore: ["docs/**", "*.md", ".cleo/**"] pull_request: + paths-ignore: ["docs/**", "*.md", ".cleo/**"] permissions: contents: read +# A newer push to the same PR cancels its superseded run; main pushes always finish. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: strategy: @@ -16,6 +23,7 @@ jobs: # T013: pull requests run Linux only; macOS runs on main pushes and on release tags (release.yml). os: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-24.04"]' || '["macos-14", "ubuntu-24.04"]') }} runs-on: ${{ matrix.os }} + timeout-minutes: 60 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 550a5ac3..152c0558 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,7 @@ jobs: - { os: ubuntu-24.04, platform: linux-x64 } - { os: ubuntu-24.04-arm, platform: linux-arm64 } runs-on: ${{ matrix.os }} + timeout-minutes: 60 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -68,15 +69,18 @@ jobs: name: agentmbx-macos-app path: build/AgentMBX-macos.zip if-no-files-found: error + retention-days: 1 # handed to the release job; the GitHub Release keeps the asset - uses: actions/upload-artifact@v4 with: name: agentmbx-${{ matrix.platform }} path: build/agentmbx-${{ matrix.platform }} if-no-files-found: error + retention-days: 1 # handed to the release job; the GitHub Release keeps the asset release: needs: build runs-on: ubuntu-24.04 + timeout-minutes: 20 permissions: contents: write steps: @@ -113,6 +117,7 @@ jobs: # The trust binding on npmjs.com names this repo and this workflow filename; renaming release.yml breaks it. needs: release runs-on: ubuntu-24.04 + timeout-minutes: 20 permissions: contents: read id-token: write