Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/bzlmod-lock-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,9 @@ jobs:
uses: actions/checkout@v4.2.2

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Check MODULE.bazel formatting
working-directory: ${{ inputs.working-directory }}
Expand All @@ -95,12 +92,9 @@ jobs:
uses: actions/checkout@v4.2.2

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Verify MODULE.bazel and MODULE.bazel.lock exist
working-directory: ${{ inputs.working-directory }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ jobs:
uses: actions/checkout@v4.2.2

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Run Copyright Check
run: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/cpp-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,9 @@ jobs:
uses: actions/checkout@v6

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: ${{ github.workflow }}
repository-cache: true
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Install lcov (+ bc for threshold check)
run: |
Expand Down
51 changes: 3 additions & 48 deletions .github/workflows/docs-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,51 +48,10 @@ jobs:
ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Compute cache paths (Linux)
id: paths
shell: bash
run: |
BASE="/home/runner/.cache"
echo "bazelisk_home=${BASE}/bazelisk" >> "$GITHUB_OUTPUT"
echo "output_base=${BASE}/bazel/output_base" >> "$GITHUB_OUTPUT"
echo "repo_contents=${BASE}/bazel/repo_contents" >> "$GITHUB_OUTPUT"
echo "repo_cache=${BASE}/bazel/repo" >> "$GITHUB_OUTPUT"
echo "disk_cache=${BASE}/bazel/disk" >> "$GITHUB_OUTPUT"
echo "pip_cache=${BASE}/pip" >> "$GITHUB_OUTPUT"

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.18.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}

- name: Prepare cache dirs
shell: bash
run: |
mkdir -p \
"${{ steps.paths.outputs.bazelisk_home }}" \
"${{ steps.paths.outputs.output_base }}" \
"${{ steps.paths.outputs.repo_contents }}" \
"${{ steps.paths.outputs.repo_cache }}" \
"${{ steps.paths.outputs.disk_cache }}" \
"${{ steps.paths.outputs.pip_cache }}"

- name: Restore content cache
id: restore-content
uses: actions/cache/restore@v4
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
path: |
${{ steps.paths.outputs.bazelisk_home }}
${{ steps.paths.outputs.output_base }}
${{ steps.paths.outputs.repo_contents }}
${{ steps.paths.outputs.repo_cache }}
${{ steps.paths.outputs.disk_cache }}
${{ steps.paths.outputs.pip_cache }}
key: ${{ env.CACHE_KEY_PREFIX }}-bazel-${{ runner.os }}-${{ hashFiles('MODULE.bazel', 'MODULE.bazel.lock', 'WORKSPACE*', '.bazelrc*') }}
restore-keys: |
${{ env.CACHE_KEY_PREFIX }}-bazel-${{ runner.os }}-
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Install Graphviz
uses: eclipse-score/apt-install@main
Expand All @@ -103,8 +62,4 @@ jobs:
- name: Run docs verification
id: verify
run: |
bazel --output_base="${{ steps.paths.outputs.output_base }}" run \
--repo_contents_cache="${{ steps.paths.outputs.repo_contents }}" \
--repository_cache="${{ steps.paths.outputs.repo_cache }}" \
--disk_cache="${{ steps.paths.outputs.disk_cache }}" \
${{ inputs.bazel-docs-verify-target }}
bazel ${{ inputs.bazel-docs-verify-target }}
138 changes: 3 additions & 135 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,124 +98,10 @@ jobs:
# Reuse the token from inter-repo-access action to ensure access to private repos
persist-credentials: false

- name: Compute cache paths (Linux)
id: paths
shell: bash
run: |
BASE="/home/runner/.cache"
echo "bazelisk_home=${BASE}/bazelisk" >> "$GITHUB_OUTPUT"
echo "output_base=${BASE}/bazel/output_base" >> "$GITHUB_OUTPUT"
echo "repo_contents=${BASE}/bazel/repo_contents" >> "$GITHUB_OUTPUT"
echo "repo_cache=${BASE}/bazel/repo" >> "$GITHUB_OUTPUT"
echo "disk_cache=${BASE}/bazel/disk" >> "$GITHUB_OUTPUT"
echo "pip_cache=${BASE}/pip" >> "$GITHUB_OUTPUT"

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}

- name: Prepare cache dirs
shell: bash
run: |
mkdir -p \
"${{ steps.paths.outputs.bazelisk_home }}" \
"${{ steps.paths.outputs.output_base }}" \
"${{ steps.paths.outputs.repo_contents }}" \
"${{ steps.paths.outputs.repo_cache }}" \
"${{ steps.paths.outputs.disk_cache }}" \
"${{ steps.paths.outputs.pip_cache }}"

- name: Restore content cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
${{ steps.paths.outputs.bazelisk_home }}
${{ steps.paths.outputs.output_base }}
${{ steps.paths.outputs.repo_contents }}
${{ steps.paths.outputs.repo_cache }}
${{ steps.paths.outputs.disk_cache }}
${{ steps.paths.outputs.pip_cache }}
key: ${{ env.CACHE_KEY_PREFIX }}-bazel-${{ runner.os }}-${{ hashFiles('MODULE.bazel', 'MODULE.bazel.lock', 'WORKSPACE*', '.bazelrc*') }}
restore-keys: |
${{ env.CACHE_KEY_PREFIX }}-bazel-${{ runner.os }}-

- name: List cache contents after restore - bazelisk_home
shell: bash
if: runner.debug
run: tree -nf -L 3 "${{ steps.paths.outputs.bazelisk_home }}" || true

- name: List cache contents after restore - output_base
shell: bash
if: runner.debug
run: tree -nf -L 3 "${{ steps.paths.outputs.output_base }}" || true

- name: List cache contents after restore - repo_contents
shell: bash
if: runner.debug
run: tree -nf -L 3 "${{ steps.paths.outputs.repo_contents }}" || true

- name: List cache contents after restore - repo_cache
shell: bash
if: runner.debug
run: tree -nf -L 3 "${{ steps.paths.outputs.repo_cache }}" || true

- name: List cache contents after restore - disk_cache
shell: bash
if: runner.debug
run: tree -nf -L 3 "${{ steps.paths.outputs.disk_cache }}" || true

- name: List cache contents after restore - pip_cache
shell: bash
if: runner.debug
run: tree -nf -L 3 "${{ steps.paths.outputs.pip_cache }}" || true

- name: Create cache snapshot (tgz)
if: runner.debug
continue-on-error: true
shell: bash
run: |
set -uxo pipefail

ARCHIVE_PATH="$RUNNER_TEMP/cache-snapshot.tgz"
entries=()
for p in \
"${{ steps.paths.outputs.bazelisk_home }}" \
"${{ steps.paths.outputs.output_base }}" \
"${{ steps.paths.outputs.repo_contents }}" \
"${{ steps.paths.outputs.repo_cache }}" \
"${{ steps.paths.outputs.disk_cache }}" \
"${{ steps.paths.outputs.pip_cache }}"; do
if [ -e "$p" ]; then
entries+=("${p#/}")
else
echo "Path does not exist (skipping): $p"
fi
done

if [ "${#entries[@]}" -eq 0 ]; then
echo "No cache paths found to archive; skipping snapshot creation."
exit 0
fi

if ! tar -C / -czf "$ARCHIVE_PATH" "${entries[@]}"; then
echo "Cache snapshot creation failed; removing incomplete archive."
rm -f "$ARCHIVE_PATH"
exit 1
fi

- name: Upload cache snapshot artifact
if: runner.debug
continue-on-error: true
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
name: cache-snapshot-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/cache-snapshot.tgz
retention-days: 5
if-no-files-found: ignore
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Install Graphviz
uses: eclipse-score/apt-install@bd30e2e74a4850389719cb8c3e312bb26aada4e0 # v1.0.0
Expand All @@ -241,11 +127,7 @@ jobs:

- name: Build documentation
run: |
bazel --output_base="${{ steps.paths.outputs.output_base }}" run \
--repo_contents_cache="${{ steps.paths.outputs.repo_contents }}" \
--repository_cache="${{ steps.paths.outputs.repo_cache }}" \
--disk_cache="${{ steps.paths.outputs.disk_cache }}" \
${{ inputs.bazel-target }}
bazel ${{ inputs.bazel-target }}

tar -cf github-pages.tar _build

Expand All @@ -257,20 +139,6 @@ jobs:
retention-days: ${{ inputs.retention-days }}
if-no-files-found: error

- name: Save content cache (branch)
if: success() && github.event_name == 'push'
continue-on-error: true
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
${{ steps.paths.outputs.bazelisk_home }}
${{ steps.paths.outputs.output_base }}
${{ steps.paths.outputs.repo_contents }}
${{ steps.paths.outputs.repo_cache }}
${{ steps.paths.outputs.disk_cache }}
${{ steps.paths.outputs.pip_cache }}
key: ${{ env.CACHE_KEY_PREFIX }}-bazel-${{ runner.os }}-${{ hashFiles('MODULE.bazel', 'MODULE.bazel.lock', 'WORKSPACE*', '.bazelrc*') }}

docs-deploy:
name: Deploy Documentation to GitHub Pages
runs-on: ${{ vars.runner_labels_ghub_standard_x64 && fromJSON(vars.runner_labels_ghub_standard_x64) || vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ jobs:
uses: actions/checkout@v4.2.2

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Run Formatting Check
run: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: true
repository-cache: true
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Run License Check via Bazel
run: |
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,9 @@ jobs:
uses: actions/checkout@v6

- name: ⚙️ Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: false
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: 🕵️ Detect Bazel targets
id: detect
Expand Down Expand Up @@ -234,12 +231,9 @@ jobs:
uses: actions/checkout@v6

- name: ⚙️ Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: false
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: 🖌️ Run formatting check
run: bazel test //:format.check
Expand All @@ -254,12 +248,9 @@ jobs:
uses: actions/checkout@v6

- name: ⚙️ Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: false
repository-cache: false
bazelisk-cache: true
cache-save: false
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: © Run copyright check
run: bazel run //:copyright.check
7 changes: 2 additions & 5 deletions .github/workflows/qnx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,9 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 #v0.19.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: ${{ inputs.bazel-disk-cache }}
repository-cache: true
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- uses: eclipse-score/cicd-actions/unblock-user-namespace-for-linux-sandbox@30ed908edcf367bc38ebff5b386a244f9b6417a7 # 2025-06-04

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/rust-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,9 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Setup Bazel with shared caching
uses: bazel-contrib/setup-bazel@0.18.0
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939 # setup-bazel-cache/v0.0.0
with:
disk-cache: true
repository-cache: true
bazelisk-cache: true
cache-save: ${{ github.event_name == 'push' }}
unique-cache-name: ${{ github.workflow }}-${{ github.job }}

- name: Run Rust tests with coverage instrumentation
run: |
Expand Down
Loading
Loading