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
5 changes: 1 addition & 4 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ permissions:
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
merge_group:
types: [checks_requested]
workflow_call:
Expand Down Expand Up @@ -63,7 +60,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Setup Bazel Cache
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939
uses: eclipse-score/cicd-actions/setup-bazel-cache@af1be61755b13c1f33b6c250080dc6ac025012f1 # setup-bazel-cache/v0.0.1
with:
unique-cache-name: ${{ github.workflow }}-${{ github.job }}-${{ matrix.name }}
- name: Install QEMU
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build_qnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ name: Bazel Build (QNX)
on:
pull_request_target:
types: [opened, reopened, synchronize]
push:
branches:
- main
merge_group:
types: [checks_requested]
workflow_call:
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/cache-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Cache maintenance
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
workflow_dispatch:
push:
branches: [main]
jobs:
repository_cache_maintenance:
permissions:
actions: write
contents: read
secrets:
score-qnx-license: ${{ secrets.SCORE_QNX_LICENSE }}
score-qnx-user: ${{ secrets.SCORE_QNX_USER }}
score-qnx-password: ${{ secrets.SCORE_QNX_PASSWORD }}
uses: eclipse-score/cicd-workflows/.github/workflows/cache-maintenance.yml@cache-fix
with:
variants: |
--config=bl-x86_64-linux //...
--config=bl-aarch64-linux //...
--config=bl-x86_64-qnx //score/...
--config=bl-aarch64-qnx //score/...
--config=clang_tidy //...
--config=bl-x86_64-linux --config=asan_ubsan_lsan //score/...
warmup-build-linux:
needs: repository_cache_maintenance
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/build_linux.yml
warmup-build-qnx:
needs: repository_cache_maintenance
if: ${{ github.event_name == 'push' }}
permissions:
contents: read
pull-requests: read
secrets: inherit
uses: ./.github/workflows/build_qnx.yml
warmup-coverage-report:
needs: repository_cache_maintenance
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/coverage_report.yml
warmup-lint:
needs: repository_cache_maintenance
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/lint.yml
warmup-sanitizers:
needs: repository_cache_maintenance
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/sanitizers_linux.yml
delete_old_caches:
needs:
- warmup-build-linux
- warmup-build-qnx
- warmup-coverage-report
- warmup-lint
- warmup-sanitizers
if: ${{ !cancelled() && github.event_name == 'push' }}
runs-on: ubuntu-24.04
permissions:
actions: write
contents: read
steps:
- name: Prune obsolete Bazel caches
uses: eclipse-score/cicd-actions/prune-cache@8e69f47b45778afd3b0d069c0456184c4ceeffe7 # prune-cache/v0.0.0
5 changes: 1 addition & 4 deletions .github/workflows/coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ permissions:
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
merge_group:
types: [checks_requested]
workflow_call:
Expand All @@ -37,7 +34,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y lcov
- name: Setup Bazel Cache
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939
uses: eclipse-score/cicd-actions/setup-bazel-cache@af1be61755b13c1f33b6c250080dc6ac025012f1 # setup-bazel-cache/v0.0.1
with:
unique-cache-name: ${{ github.workflow }}-${{ github.job }}
- name: Run Bazel Coverage
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ permissions:
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
merge_group:
types: [checks_requested]
workflow_call:
Expand All @@ -33,7 +30,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Setup Bazel Cache
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939
uses: eclipse-score/cicd-actions/setup-bazel-cache@af1be61755b13c1f33b6c250080dc6ac025012f1 # setup-bazel-cache/v0.0.1
with:
unique-cache-name: ${{ github.workflow }}-${{ github.job }}
- name: Bazel Build with clang-tidy
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/sanitizers_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ permissions:
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
merge_group:
types: [checks_requested]
workflow_call:
Expand All @@ -33,7 +30,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Setup Bazel Cache
uses: eclipse-score/cicd-actions/setup-bazel-cache@659dcbed63f6b7fbde88c7850125ea0a0a92f939
uses: eclipse-score/cicd-actions/setup-bazel-cache@af1be61755b13c1f33b6c250080dc6ac025012f1 # setup-bazel-cache/v0.0.1
with:
unique-cache-name: ${{ github.workflow }}-${{ github.job }}
- name: Bazel Test with Sanitizers
Expand Down
Loading