Merge branch 'master' into future-2026-04 #187
Workflow file for this run
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: Release-Linux | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-ubuntu: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| path: hydrus | |
| - | |
| name: Extract Version Metadata | |
| id: meta | |
| run: | | |
| echo "version=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
| echo "version_short=${GITHUB_REF##*/v}" >> $GITHUB_ENV | |
| - | |
| name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| architecture: x64 | |
| - | |
| name: APT Install | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libmpv2 | |
| - | |
| name: Pip Install | |
| run: python3 -m pip install -r hydrus/static/build_files/linux/requirements.txt | |
| - | |
| name: Build docs to /help | |
| run: mkdocs build -d help | |
| working-directory: hydrus | |
| - | |
| name: Build Hydrus | |
| run: | | |
| cp hydrus/static/build_files/linux/hydrus.spec hydrus.spec | |
| pyinstaller hydrus.spec | |
| - | |
| name: Remove Surplus File | |
| run: | | |
| rm -f "dist/Hydrus Network/"libxkbcommon.so* | |
| - | |
| name: Set Permissions | |
| run: | | |
| sudo find dist -type d -exec chmod 0755 {} \; | |
| - | |
| name: Compress Client | |
| run: | | |
| tar --zstd -cvf Hydrus.Network.${{ env.version_short }}.-.Linux.-.Executable.tar.zst -C dist "Hydrus Network" | |
| - | |
| name: Upload Files | |
| uses: softprops/action-gh-release@v3 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| Hydrus.Network.${{ env.version_short }}.-.Linux.-.Executable.tar.zst |