style(Homebrew): Update Homebrew formula dependencies and conflicts (#4484)

This commit is contained in:
David Lane 2025-12-19 22:23:54 -05:00 committed by GitHub
commit 79b4b9f6fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 54 additions and 26 deletions

View file

@ -62,7 +62,7 @@ jobs:
run: ls -l artifacts
- name: Update GitHub Release
uses: LizardByte/actions/actions/release_create@v2025.1028.23217
uses: LizardByte/actions/actions/release_create@v2025.1220.21713
with:
allowUpdates: true
body: ${{ github.event.release.body }}

View file

@ -33,7 +33,7 @@ jobs:
steps:
- name: More space
if: matrix.arch == 'x86_64'
uses: LizardByte/actions/actions/more_space@v2025.1028.23217
uses: LizardByte/actions/actions/more_space@v2025.1220.21713
with:
analyze-space-savings: true
clean-all: true

View file

@ -36,21 +36,21 @@ jobs:
include:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
# while GitHub has larger macOS runners, they are not available for our repos :(
- os_version: "14"
os_name: "macos"
- os_version: "15"
os_name: "macos"
- os_version: "26"
os_name: "macos"
- os_version: "latest"
os_name: "ubuntu"
- os_version: "latest" # this job will only configure the formula for release, no validation
os_name: "ubuntu"
release: true
- os_name: "macos"
os_version: "14"
- os_name: "macos"
os_version: "15"
- os_name: "macos"
os_version: "26"
- os_name: "ubuntu"
os_version: "22.04"
- os_name: "ubuntu"
os_version: "latest"
release: true # this job will only configure the formula for release, no validation
steps:
- name: More space
if: runner.os == 'Linux'
uses: LizardByte/actions/actions/more_space@v2025.1028.23217
uses: LizardByte/actions/actions/more_space@v2025.1220.21713
with:
analyze-space-savings: true
clean-all: true
@ -142,7 +142,7 @@ jobs:
- name: Validate Homebrew Formula
id: test
if: matrix.release != true
uses: LizardByte/actions/actions/release_homebrew@v2025.1028.23217
uses: LizardByte/actions/actions/release_homebrew@v2025.1220.21713
with:
formula_file: ${{ github.workspace }}/homebrew/sunshine.rb
git_email: ${{ secrets.GIT_EMAIL }}
@ -178,7 +178,22 @@ jobs:
# update the formula
sed -i 's/class Sunshine < Formula/class SunshineBeta < Formula/' $formula_file
sed -i 's/# conflicts_with/conflicts_with/' $formula_file
sed -i 's/conflicts_with "sunshine-beta"/conflicts_with "sunshine"/' $formula_file
sed -i '0,/^ version .*$/d' $formula_file
# update livecheck to check for latest stable or pre-release
# shellcheck disable=SC1004
sed -i '/strategy :github_latest do |json, regex|/,/^ end$/c\
strategy :github_releases do |json, regex|\
json.map do |release|\
next if release["draft"]\
\
match = release["tag_name"]?\&.match(regex)\
next if match.blank?\
\
match[1]\
end\
end' $formula_file
# print new file
echo "New formula:"

View file

@ -29,7 +29,7 @@ jobs:
dist: 22.04
steps:
- name: More space
uses: LizardByte/actions/actions/more_space@v2025.1028.23217
uses: LizardByte/actions/actions/more_space@v2025.1220.21713
with:
analyze-space-savings: true
clean-all: true

View file

@ -43,7 +43,7 @@ jobs:
- name: Release Setup
id: release-setup
uses: LizardByte/actions/actions/release_setup@v2025.1028.23217
uses: LizardByte/actions/actions/release_setup@v2025.1220.21713
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
@ -181,7 +181,7 @@ jobs:
- name: Homebrew-macos-26
coverage: false
pr: true
- name: Homebrew-ubuntu-latest
- name: Homebrew-ubuntu-22.04
coverage: true
pr: true
- name: Windows-AMD64
@ -259,7 +259,7 @@ jobs:
run: ls -l artifacts
- name: Create/Update GitHub Release
uses: LizardByte/actions/actions/release_create@v2025.1028.23217
uses: LizardByte/actions/actions/release_create@v2025.1220.21713
with:
allowUpdates: false
body: ${{ needs.release-setup.outputs.release_body }}
@ -288,7 +288,7 @@ jobs:
path: homebrew
- name: Upload Homebrew Beta Formula
uses: LizardByte/actions/actions/release_homebrew@v2025.1028.23217
uses: LizardByte/actions/actions/release_homebrew@v2025.1220.21713
with:
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
git_email: ${{ secrets.GH_BOT_EMAIL }}