From 7569ca914c1858be039adddaa6bae68594ade13c Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 4 Mar 2026 20:26:58 +0100 Subject: [PATCH] chore: script --- .github/workflows/ci.yml | 10 ++++++++++ .github/workflows/pages.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 406de4e..33118bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: branches: ["main"] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: permissions: @@ -25,6 +29,12 @@ jobs: steps: - uses: actions/checkout@v4 - uses: bazel-contrib/setup-bazel@0.15.0 + with: + bazelisk-cache: true + repository-cache: true + external-cache: true + disk-cache: ci-${{ matrix.phase8_target }} + cache-save: ${{ github.event_name != 'pull_request' }} - name: Run tests (${{ matrix.phase8_target }}) run: | echo "Phase 8 target: ${{ matrix.phase8_target }}" diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 27e4bd6..eeaa683 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -3,6 +3,11 @@ name: Docs Pages on: push: branches: ["main"] + paths: + - "docs/**" + - "bun/**/*.bzl" + - "internal/**/*.bzl" + - ".github/workflows/pages.yml" workflow_dispatch: permissions: @@ -26,6 +31,11 @@ jobs: - uses: actions/checkout@v4 - uses: bazel-contrib/setup-bazel@0.15.0 + with: + bazelisk-cache: true + repository-cache: true + external-cache: true + disk-cache: docs-pages - name: Generate rule docs run: |