diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 3a303d0..283366b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,43 +14,6 @@ env: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} jobs: - build-appimage: - name: Build AppImage - runs-on: ubuntu-22.04 - steps: - - uses: https://gitea.com/actions/checkout@v4 - - - name: Install required dependencies - run: | - sudo apt update - sudo apt install -y binutils coreutils desktop-file-utils gtk-update-icon-cache fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-dev python3-setuptools python3-build python3-venv squashfs-tools strace util-linux zsync git zstd adwaita-icon-theme - - - name: Upgrade pip toolchain - run: | - python3 -m pip install --upgrade \ - pip setuptools setuptools-scm wheel packaging build - - - name: Install appimage-builder - run: | - git clone https://github.com/Boria138/appimage-builder - cd appimage-builder - pip install . - - - name: Install uv - run: | - pip install uv - - - name: Build AppImage - run: | - cd build-aux - appimage-builder - - - name: Upload AppImage - uses: https://gitea.com/actions/gitea-upload-artifact@v4 - with: - name: PortProtonQt-AppImage - path: build-aux/PortProtonQt*.AppImage* - build-arch: name: Build Arch Package runs-on: ubuntu-22.04 @@ -95,7 +58,7 @@ jobs: su user -c "yes '' | makepkg --noconfirm -s" - name: Checkout - uses: https://gitea.com/actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v5 - name: Upload Arch package uses: https://gitea.com/actions/gitea-upload-artifact@v4 @@ -103,53 +66,9 @@ jobs: name: PortProtonQt-Arch path: ${{ env.PKGDEST }}/* - build-fedora: - name: Build Fedora RPM - runs-on: ubuntu-latest - - strategy: - matrix: - fedora_version: [41, 42, 43, rawhide] - - container: - image: fedora:${{ matrix.fedora_version }} - options: --privileged - - steps: - - name: Install build dependencies - run: | - dnf install -y git rpmdevtools python3-devel python3-wheel python3-pip \ - python3-build pyproject-rpm-macros python3-setuptools \ - redhat-rpm-config nodejs npm - - - name: Setup rpmbuild environment - run: | - useradd rpmbuild -u 5002 -g users || true - mkdir -p /home/rpmbuild/{BUILD,RPMS,SPECS,SRPMS,SOURCES} - chown -R rpmbuild:users /home/rpmbuild - echo '%_topdir /home/rpmbuild' > /home/rpmbuild/.rpmmacros - - - name: Checkout repo - uses: https://gitea.com/actions/checkout@v4 - - - name: Copy fedora.spec - run: | - cp build-aux/fedora.spec /home/rpmbuild/SPECS/${{ env.PACKAGE }}.spec - chown -R rpmbuild:users /home/rpmbuild - - - name: Build RPM - run: | - su rpmbuild -c "rpmbuild -ba /home/rpmbuild/SPECS/${{ env.PACKAGE }}.spec" - - - name: Upload RPM package - uses: https://gitea.com/actions/gitea-upload-artifact@v4 - with: - name: PortProtonQt-RPM-Fedora-${{ matrix.fedora_version }} - path: /home/rpmbuild/RPMS/**/*.rpm - release: name: Create and Publish Release - needs: [build-appimage, build-arch, build-fedora] + needs: [ build-arch ] runs-on: ubuntu-latest steps: - uses: https://gitea.com/actions/checkout@v4 @@ -160,30 +79,6 @@ jobs: sudo apt install -y original-awk unzip - name: Download all artifacts - uses: https://gitea.com/actions/download-artifact@v3 + uses: https://gitea.com/actions/download-artifact@v5 with: path: release/ - - - name: Extract downloaded artifacts - run: | - mkdir -p extracted - find release/ -name '*.zip' -exec unzip -o {} -d extracted/ \; - find extracted/ -type f -exec mv {} release/ \; - find release/ -name '*.zip' -delete - rm -rf extracted/ - - - name: Extract changelog for version - id: changelog - run: | - VERSION="${{ env.VERSION }}" - awk "/^## \\[$VERSION\\]/ {flag=1; next} /^## \\[/ || /^---/ {flag=0} flag" CHANGELOG.md > changelog.txt - - - name: Release - uses: https://gitea.com/actions/gitea-release-action@v1 - with: - body_path: changelog.txt - token: ${{ env.GITEA_TOKEN }} - tag_name: v${{ env.VERSION }} - prerelease: true - files: release/**/* - sha256sum: true