add pip install for windows/mac/ubuntu #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake on Mac/Linux/Windows platforms | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| schedule: | |
| #- cron: '0 0 * * *' # Once per day | |
| - cron: '0 0 2-30/2 * *' # Once per day | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| repository-projects: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # os: [ubuntu-latest, windows-latest, macos-latest ] | |
| os: [ubuntu-latest] | |
| build_type: [Release] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: | | |
| date > generated.txt | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --global pull.rebase true | |
| git add . | |
| git commit -m "gitbot on `date`" | |
| git pull | |
| git push | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - name: Build package python3-poppler-qt5 | |
| run: | | |
| sudo apt update | |
| sudo apt install --yes python3-poppler-qt5 | |
| uvx --with distlib python <<EOF | |
| from distlib.index import PackageIndex | |
| from distlib.locators import locate | |
| dist = locate('python-poppler-qt5') | |
| fn = dist.source_url.rsplit('/', 1)[-1] | |
| PackageIndex(dist.locator.base_url).download_file(dist.source_url, fn, dist.digest) | |
| print(f'SDIST_FILENAME={fn}') | |
| EOF | |
| - name: Build package piepdf | |
| run: | | |
| uv sync --dev | |
| uv build | |
| # - uses: actions/setup-python@v6 | |
| # - run: | | |
| # sudo apt update | |
| # sudo apt install --yes python3-poppler-qt5 | |
| # pip install --upgrade pip | |
| # pip install --upgrade sip | |
| # # pip install git+https://github.com/frescobaldi/python-poppler-qt5.git | |
| # pip install habanero PyQt5 feedparser | |
| # pip install -e . |