mirror of
https://github.com/ublue-os/packages.git
synced 2026-11-03 21:49:48 -09:00
chore: remove brew tarball generation (#1182)
This commit is contained in:
parent
c2ef8f2840
commit
38229ff00a
2 changed files with 0 additions and 98 deletions
97
.github/workflows/brew-tarball.yml
vendored
97
.github/workflows/brew-tarball.yml
vendored
|
|
@ -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}"/*
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,6 +1,5 @@
|
||||||
output/
|
output/
|
||||||
mock/
|
mock/
|
||||||
rpmbuild/
|
rpmbuild/
|
||||||
brew-out/
|
|
||||||
arch_skipped
|
arch_skipped
|
||||||
overlays/
|
overlays/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue