ci: run pre-commit workflow on heavy runner to make doxygen work (#2085)

This commit is contained in:
Ayaz Salikhov
2025-05-06 15:51:00 +01:00
committed by GitHub
parent 90103431ea
commit 9af36e5235
2 changed files with 16 additions and 8 deletions

View File

@@ -9,18 +9,20 @@ on:
jobs:
run-hooks:
runs-on: ubuntu-latest
runs-on: heavy
container:
image: ghcr.io/xrplf/clio-ci:latest
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v4
- name: Set Up Python 🐍
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install pre-commit 📦
run: |
pip install --upgrade pip
pip install --upgrade pre-commit
fetch-depth: 0
- name: Prepare runner
uses: ./.github/actions/prepare_runner
with:
disable_ccache: true
- name: Run pre-commit ✅
run: pre-commit run --all-files

View File

@@ -15,6 +15,12 @@ DOCDIR=${TMPDIR}/out
# Check doxygen is at all installed
if [ -z "$DOXYGEN" ]; then
if [[ "${CI}" == "true" ]]; then
# If we are in CI, we should fail the check
echo "doxygen not found in CI, please install it"
exit 1
fi
# No hard error if doxygen is not installed yet
cat <<EOF