fix(ci): remove linux build due to lacking power

This commit is contained in:
2025-12-02 15:48:31 +01:00
parent bfe9b24359
commit 9d0151a6d1

View File

@@ -69,75 +69,75 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
build-linux: # build-linux:
needs: prepare # needs: prepare
runs-on: ubuntu-latest # runs-on: ubuntu-latest
env: # env:
VERSION: ${{ needs.prepare.outputs.version }} # VERSION: ${{ needs.prepare.outputs.version }}
TAG_NAME: ${{ needs.prepare.outputs.tag }} # TAG_NAME: ${{ needs.prepare.outputs.tag }}
steps: # steps:
- name: Checkout code # - name: Checkout code
uses: actions/checkout@v5 # uses: actions/checkout@v5
with: # with:
fetch-depth: 0 # fetch-depth: 0
fetch-tags: true # fetch-tags: true
- name: Install uv # - name: Install uv
uses: astral-sh/setup-uv@v7 # uses: astral-sh/setup-uv@v7
- name: Set up Python # - name: Set up Python
uses: actions/setup-python@v5 # uses: actions/setup-python@v5
with: # with:
python-version-file: "pyproject.toml" # python-version-file: "pyproject.toml"
- name: Install all dependencies # - name: Install all dependencies
run: uv sync --all-groups # run: uv sync --all-groups
- name: Build documentation # - name: Build documentation
run: uv run zensical build --clean # run: uv run zensical build --clean
- name: Build Linux release with Nuitka # - name: Build Linux release with Nuitka
run: | # run: |
uv add patchelf # uv add patchelf
uv run python -m nuitka \ # uv run python -m nuitka \
--standalone \ # --standalone \
--output-dir=dist \ # --output-dir=dist \
--include-data-dir=./config=config \ # --include-data-dir=./config=config \
--include-data-dir=./site=site \ # --include-data-dir=./site=site \
--include-data-dir=./icons=icons \ # --include-data-dir=./icons=icons \
--include-data-dir=./mail_vorlagen=mail_vorlagen \ # --include-data-dir=./mail_vorlagen=mail_vorlagen \
--enable-plugin=pyside6 \ # --enable-plugin=pyside6 \
--product-name=SemesterApparatsManager \ # --product-name=SemesterApparatsManager \
--product-version=${VERSION} \ # --product-version=${VERSION} \
--output-filename=SAM \ # --output-filename=SAM \
main.py # main.py
- name: Prepare Linux Release Artifact # - name: Prepare Linux Release Artifact
run: | # run: |
mkdir -p releases # mkdir -p releases
cd dist/SemesterApparatsManager.dist # cd dist/SemesterApparatsManager.dist
zip -r "../../releases/SAM-linux-v${VERSION}.zip" * # zip -r "../../releases/SAM-linux-v${VERSION}.zip" *
cd ../../ # cd ../../
- name: Create / Update Gitea Release (Linux asset + changelog) # - name: Create / Update Gitea Release (Linux asset + changelog)
if: ${{ github.event.inputs.github_release == 'true' }} # if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@v2 # uses: softprops/action-gh-release@v2
with: # with:
tag_name: ${{ env.TAG_NAME }} # tag_name: ${{ env.TAG_NAME }}
name: Release ${{ env.TAG_NAME }} # name: Release ${{ env.TAG_NAME }}
body: ${{ needs.prepare.outputs.changelog }} # body: ${{ needs.prepare.outputs.changelog }}
draft: false # draft: false
prerelease: ${{ github.event.inputs.prerelease }} # prerelease: ${{ github.event.inputs.prerelease }}
make_latest: true # make_latest: true
files: | # files: |
releases/SAM-linux-v${{ env.VERSION }}.zip # releases/SAM-linux-v${{ env.VERSION }}.zip
env: # env:
GITHUB_TOKEN: ${{ secrets.TOKEN }} # GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }} # GITHUB_REPOSITORY: ${{ github.repository }}
build-windows: build-windows:
needs: [prepare, build-linux] needs: prepare
runs-on: windows-latest runs-on: windows-latest
env: env:
VERSION: ${{ needs.prepare.outputs.version }} VERSION: ${{ needs.prepare.outputs.version }}
@@ -207,21 +207,24 @@ jobs:
Compress-Archive -Path * -DestinationPath "..\releases\SAM-windows-v${env:VERSION}.zip" -Force Compress-Archive -Path * -DestinationPath "..\releases\SAM-windows-v${env:VERSION}.zip" -Force
Set-Location .. Set-Location ..
- name: Attach Windows asset to Gitea Release - name: Create / Update Gitea Release (Windows asset + changelog)
if: ${{ github.event.inputs.github_release == 'true' }} if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
tag_name: ${{ env.TAG_NAME }} tag_name: ${{ env.TAG_NAME }}
name: Release ${{ env.TAG_NAME }}
body: ${{ needs.prepare.outputs.changelog }}
draft: false draft: false
prerelease: ${{ github.event.inputs.prerelease }} prerelease: ${{ github.event.inputs.prerelease }}
make_latest: true
files: | files: |
releases/SAM-windows-v${{ env.VERSION }}.zip releases/SAM-windows-v${{ env.VERSION }}.zip
env: env:
GITHUB_TOKEN: ${{ secrets.TOKEN }} GITHUB_TOKEN: ${{ secrets.TOKEN }}
# GITHUB_REPOSITORY: ${{ github.repository }} GITHUB_REPOSITORY: ${{ github.repository }}
finalize: finalize:
needs: [prepare, build-linux, build-windows] needs: [prepare, build-windows]
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
VERSION: ${{ needs.prepare.outputs.version }} VERSION: ${{ needs.prepare.outputs.version }}