style(Homebrew): Update Homebrew formula dependencies and conflicts (#4484)
This commit is contained in:
parent
eb3afd43df
commit
79b4b9f6fb
6 changed files with 54 additions and 26 deletions
2
.github/workflows/ci-copr.yml
vendored
2
.github/workflows/ci-copr.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
2
.github/workflows/ci-flatpak.yml
vendored
2
.github/workflows/ci-flatpak.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
43
.github/workflows/ci-homebrew.yml
vendored
43
.github/workflows/ci-homebrew.yml
vendored
|
|
@ -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:"
|
||||
|
|
|
|||
2
.github/workflows/ci-linux.yml
vendored
2
.github/workflows/ci-linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue