From 0d26c42f8ae419d509aa47d3f7a23bfdd08cf79b Mon Sep 17 00:00:00 2001 From: "Max P." Date: Thu, 1 May 2025 17:44:36 +0200 Subject: [PATCH] chore: remove build-deb.yml workflow file Signed-off-by: Max P. --- .github/workflows/build-deb.yml | 92 --------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 .github/workflows/build-deb.yml diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml deleted file mode 100644 index 26db4e0..0000000 --- a/.github/workflows/build-deb.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: Build Wheels - -on: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: βš™οΈ Prepare Environment Variables - run: | - echo "AGENT_TOOLSDIRECTORY=/home/runner/toolcache" >> $GITHUB_ENV - mkdir -p /home/runner/toolcache - - - name: πŸ›’ Checkout Repository - uses: actions/checkout@v4 - - - name: 🐍 Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: πŸ“¦ Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python3 - - echo "$HOME/.local/bin" >> $GITHUB_PATH - poetry self add poetry-plugin-export - - - name: πŸ”§ Install Project Dependencies - run: | - poetry install - - - name: πŸ“ Export requirements.txt - run: | - poetry export --without-hashes --format=requirements.txt > requirements.txt - - - name: πŸ“₯ Download Wheels for Dependencies - run: | - mkdir -p dist/wheels - poetry run pip install wheel - poetry run pip download --only-binary=:all: --dest dist -r requirements.txt - - - name: πŸ›  Build Project Wheel - run: | - poetry build -f wheel - - - name: πŸ”Œ Install pipx and wheel2deb - run: | - python3 -m pip install --user pipx - python3 -m pipx ensurepath - pipx install wheel2deb - - - name: πŸ“¦ Install wheel2deb Dependencys - run: | - sudo apt update - sudo apt install -y apt-file dpkg-dev fakeroot build-essential devscripts debhelper - sudo apt-file update - - - name: πŸ›  Convert Wheel to DEB - run: | - mkdir -p dist/debs - wheel2deb default -v -x dist -o dist/debs - - - name: πŸ“¦ Clone `packages`-Branch in ./packages - run: | - REPO_URL_BASE="$(echo $GITHUB_SERVER_URL/${{ secrets.TEA_USER }}/debrepo.git | sed 's/^https\?:\/\///')" - REPO_URL="https://${{ secrets.TEA_USER }}:${{ secrets.TEA_PAT }}@$REPO_URL_BASE" - echo "::add-mask::$REPO_URL" - echo "πŸ“‘ Klone Repository von: $REPO_URL" - git clone --depth 1 --branch packages "$REPO_URL" packages - - - name: πŸ“‚ Ensure `./packages/hdlbuild` Exists and Copy DEBs - run: | - mkdir -p ./packages/hdlbuild - find dist/debs -type f -name "*.deb" -exec cp {} ./packages/hdlbuild/ \; - - - name: πŸ“ Commit & Push immer - run: | - cd packages - git config user.name "Gitea CI" - git config user.email "ci@yourdomain" - - git add hdlbuild/ - git commit -m "πŸ”„ Update hdlbuild $(date -u +'%Y-%m-%d %H:%M UTC')" || echo "🧊 Keine Γ„nderungen – leerer Commit" - - REPO_URL_BASE="$(echo $GITHUB_SERVER_URL/${{ secrets.TEA_USER }}/debrepo.git | sed 's/^https\?:\/\///')" - REPO_URL="https://${{ secrets.TEA_USER }}:${{ secrets.TEA_PAT }}@$REPO_URL_BASE" - echo "::add-mask::$REPO_URL" - - git remote set-url origin "$REPO_URL" - git push origin packages