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