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

View File

@@ -15,6 +15,12 @@ DOCDIR=${TMPDIR}/out
# Check doxygen is at all installed # Check doxygen is at all installed
if [ -z "$DOXYGEN" ]; then 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 # No hard error if doxygen is not installed yet
cat <<EOF cat <<EOF