Merge branch 'HotFix_site' #1234
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| readme: | |
| container: iquiw/alpine-emacs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: emacs --batch README.org --eval '(org-md-export-to-markdown)' | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: README | |
| path: README.md | |
| build_wheel: | |
| needs: readme | |
| strategy: | |
| matrix: | |
| runs-on: [macos-13, macos-14, windows-latest, ubuntu-latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: README | |
| path: README | |
| - run: mv README/README.md README.md | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: | | |
| **/pyproject.toml | |
| **/setup.py | |
| - run: uvx -p 3.12 cibuildwheel | |
| shell: bash | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-${{ matrix.runs-on }}-${{ strategy.job-index }} | |
| path: ./wheelhouse/*.whl | |
| build_aarch64: | |
| needs: readme | |
| strategy: | |
| matrix: | |
| py: ['39', '310', '311', '312', '313'] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: README | |
| path: README | |
| - run: mv README/README.md README.md | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: | | |
| **/pyproject.toml | |
| **/setup.py | |
| - uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: all | |
| - run: uvx -p 3.12 cibuildwheel | |
| shell: bash | |
| env: | |
| CIBW_BUILD: ${{'cp'}}${{ matrix.py }}${{'-????linux_*64'}} | |
| CIBW_ARCHS_LINUX: aarch64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-aarch64-${{ matrix.py }}-${{ strategy.job-index }} | |
| path: ./wheelhouse/*.whl | |
| build_targz: | |
| needs: readme | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: README | |
| path: README | |
| - run: mv README/README.md README.md | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: | | |
| **/pyproject.toml | |
| **/setup.py | |
| - run: uv run --no-project --with build python -m build --sdist | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-sdist | |
| path: dist/*.tar.gz | |
| upload: | |
| needs: [build_wheel, build_aarch64, build_targz] | |
| environment: pypi | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| if: github.event_name == 'push' && startsWith(github.event.ref,'refs/tags/v') | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| pattern: 'dist-*' | |
| path: dist | |
| merge-multiple: true | |
| - uses: pypa/gh-action-pypi-publish@release/v1 |