fix-build #1

Merged
admin merged 2 commits from fix-build into main 2025-11-24 15:20:20 -06:00
Showing only changes of commit 8428dc9b1a - Show all commits

View File

@@ -25,39 +25,26 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: rockylinux:9
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install system dependencies - name: Build Docker image
run: | run: |
dnf install -y \ docker build -t rocky-man:latest .
python3.11 \
python3.11-pip \
mandoc \
rpm-build \
dnf-plugins-core \
git
- name: Install UV - name: Create output directories
run: | run: |
curl -LsSf https://astral.sh/uv/install.sh | sh mkdir -p ./html ./tmp
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install Python dependencies - name: Build man pages in container
run: | run: |
uv pip install --system -e . docker run --rm \
-v "$(pwd)/html:/data/html" \
- name: Build man pages -v "$(pwd)/tmp:/data/tmp" \
run: | rocky-man:latest \
python3.11 -m rocky_man.main \ --versions ${{ github.event.inputs.versions || '8.10 9.6 10.0' }} \
--versions ${{ github.event.inputs.versions || '8.10 9.5' }} \
--output-dir ./html \
--download-dir ./tmp/downloads \
--extract-dir ./tmp/extracts \
--verbose --verbose
env: env:
PYTHONUNBUFFERED: 1 PYTHONUNBUFFERED: 1