From 38229ff00adc95a17effa510070fb881f0882564 Mon Sep 17 00:00:00 2001 From: renner <80410025+renner0e@users.noreply.github.com> Date: Wed, 11 Mar 2026 17:24:48 +0100 Subject: [PATCH] chore: remove brew tarball generation (#1182) --- .github/workflows/brew-tarball.yml | 97 ------------------------------ .gitignore | 1 - 2 files changed, 98 deletions(-) delete mode 100644 .github/workflows/brew-tarball.yml diff --git a/.github/workflows/brew-tarball.yml b/.github/workflows/brew-tarball.yml deleted file mode 100644 index d6c75c1..0000000 --- a/.github/workflows/brew-tarball.yml +++ /dev/null @@ -1,97 +0,0 @@ -name: Generate Homebrew Tarball and Release - -on: - workflow_dispatch: - pull_request: - paths: - - '.github/workflows/brew-tarball.yml' - schedule: - - cron: "0 1 * * TUE" # Every Tuesday at 1am UTC - -jobs: - create_release: - name: Create Release - runs-on: ubuntu-latest - timeout-minutes: 30 - permissions: - contents: write - outputs: - tag_date: ${{ steps.date.outputs.tag_date }} - steps: - - name: Get current date - if: github.event_name != 'pull_request' - id: date - run: | - set -x - echo "date=$(date -u +%Y\-%m\-%d\ %H\:%M\:%S)" >> $GITHUB_OUTPUT - echo "tag_date=$(date -u +%Y\-%m\-%d-%H-%M-%S)" >> $GITHUB_OUTPUT - - - name: Create Release - if: github.event_name != 'pull_request' - uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2 - with: - name: Homebrew Tarball (${{ steps.date.outputs.date }}) - tag_name: "homebrew-${{ steps.date.outputs.tag_date }}" - body: | - This is a homebrew tarball generated for the [ublue-brew](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/ublue/brew/ublue-brew.spec) package. - It exists so that images can have a consistent tarball to base to install homebrew - make_latest: true - - push_tarballs: - name: Generate Homebrew Tarball and Push to Release - runs-on: ${{ matrix.platform == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }} - needs: create_release - timeout-minutes: 30 - permissions: - contents: write - strategy: - matrix: - platform: [arm64, amd64] - fail-fast: false - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Setup Just - uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b # v3 - - - name: Generate Homebrew tarball - id: generate_tarball - run: | - set -euox pipefail - just=$(which just) - - OUTDIR="./brew-out" - SHASUM_DIR="./brew-sum" - TARBALL_FILENAME="homebrew-$(arch).tar.zst" - - $just generate-homebrew-tarball ${OUTDIR} ${TARBALL_FILENAME} - - mkdir -p $SHASUM_DIR - for spice in 1 256 512 ; do - "sha${spice}sum" "$OUTDIR/$TARBALL_FILENAME" | tee "$SHASUM_DIR/homebrew-$(arch).sha${spice}" - done - - echo "outdir=$(realpath $OUTDIR)" >> "$GITHUB_OUTPUT" - echo "tarball_file=$(realpath $OUTDIR)/$TARBALL_FILENAME" >> "$GITHUB_OUTPUT" - echo "shasum_dir=$(realpath $SHASUM_DIR)" >> "$GITHUB_OUTPUT" - - - name: Upload to Job Artifacts - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 - with: - name: brew-tarball-${{ matrix.platform }} - if-no-files-found: error - path: | - ${{ steps.generate_tarball.outputs.tarball_file }} - ${{ steps.generate_tarball.outputs.shasum_dir }}/* - - - name: Upload Release Artifact - if: github.event_name != 'pull_request' - env: - GITHUB_TOKEN: ${{ github.token }} - TAG_DATE: ${{ needs.create_release.outputs.tag_date }} - TARBALL_FILE: ${{ steps.generate_tarball.outputs.tarball_file }} - SHASUM_DIR: ${{ steps.generate_tarball.outputs.shasum_dir }} - run: | - gh release upload --clobber \ - "homebrew-${TAG_DATE}" \ - "${TARBALL_FILE}" \ - "${SHASUM_DIR}"/* diff --git a/.gitignore b/.gitignore index e9d6f4b..d207033 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ output/ mock/ rpmbuild/ -brew-out/ arch_skipped overlays/