Skip to content

Commit

Permalink
Try to install pscopg2 prereqs in sphinx gh action part 7
Browse files Browse the repository at this point in the history
  • Loading branch information
TorecLuik committed Dec 3, 2024
1 parent ad77e30 commit 5fbe8a7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- name: Pre-build Setup
run: |
apt-get update -y && \
apt-get install -y gcc python3-dev libpq-dev
# Find pg_config and add it to PATH if not found
if ! command -v pg_config &> /dev/null; then
PG_CONFIG_PATH=$(find /usr/lib/postgresql -type f -name pg_config | head -n 1)
if [ -n "$PG_CONFIG_PATH" ]; then
export PATH=$(dirname "$PG_CONFIG_PATH"):$PATH
else
echo "pg_config not found, exiting..." >&2
exit 1
fi
fi
pg_config --version
- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
pre-build-command: |
apt-get update -y && \
apt-get install -y gcc python3-dev libpq-dev
# Find pg_config and add it to PATH if not found
if ! command -v pg_config &> /dev/null; then
PG_CONFIG_PATH=$(find /usr/lib/postgresql -type f -name pg_config | head -n 1)
if [ -n "$PG_CONFIG_PATH" ]; then
export PATH=$(dirname "$PG_CONFIG_PATH"):$PATH
else
echo "pg_config not found, exiting..." >&2
exit 1
fi
fi
pg_config --version
env:
SETUPTOOLS_SCM_PRETEND_VERSION: 1
- name: Upload artifacts
Expand Down

0 comments on commit 5fbe8a7

Please sign in to comment.