Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: brew pr-pull

on:
pull_request_target:
types:
- labeled

jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-22.04
permissions:
actions: read
checks: read
contents: write
issues: read
packages: write
pull-requests: write
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@main
with:
stable: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up git
uses: Homebrew/actions/git-user-config@main

- name: Pull bottles
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.repository_owner }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: brew pr-pull --debug --tap="${GITHUB_REPOSITORY}" "${PULL_REQUEST}"

- name: Push commits
uses: Homebrew/actions/git-try-push@main
with:
branch: master

- name: Delete branch
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin "${BRANCH}"
104 changes: 104 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
name: brew test-bot

on:
push:
branches:
- master
pull_request:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
test-bot:
strategy:
matrix:
os:
- ubuntu-22.04
- macos-14
- macos-15
- macos-26
runs-on: ${{ matrix.os }}
permissions:
actions: read
checks: read
contents: read
packages: read
pull-requests: read
steps:
- name: More space
if: runner.os == 'Linux'
uses: LizardByte/actions/actions/more_space@v2025.1028.23217
with:
analyze-space-savings: true
clean-all: true
safe-packages: brew

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@main
with:
stable: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache Homebrew Bundler RubyGems
uses: actions/cache@v5
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ matrix.os }}-rubygems-

- name: Brew cleanup before
run: brew test-bot --fail-fast --only-cleanup-before

- name: Brew setup
run: brew test-bot --fail-fast --only-setup

- name: Check syntax
run: brew test-bot --fail-fast --only-tap-syntax

- name: Base64-encode GITHUB_TOKEN for HOMEBREW_DOCKER_REGISTRY_TOKEN
id: base64-encode
if: github.event_name == 'pull_request'
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
base64_token=$(echo -n "${TOKEN}" | base64 | tr -d "\n")
echo "::add-mask::${base64_token}"
echo "token=${base64_token}" >> "${GITHUB_OUTPUT}"

- name: Build bottles
if: github.event_name == 'pull_request'
env:
HOMEBREW_DOCKER_REGISTRY_TOKEN: ${{ steps.base64-encode.outputs.token }}
run: brew test-bot --fail-fast --only-formulae --root-url=https://ghcr.io/v2/lizardbyte/homebrew

- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v6
with:
name: bottles_${{ matrix.os }}
path: '*.bottle.*'

auto-approve-lizardbyte-bot:
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'LizardByte-bot'
needs: test-bot
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Label PR with pr-pull
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['pr-pull']
});
2 changes: 2 additions & 0 deletions Formula/s/sunshine-beta.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require "language/node"

class SunshineBeta < Formula
Expand Down Expand Up @@ -94,7 +94,7 @@
cause "Requires C++23 support"
end

def install

Check warning on line 97 in Formula/s/sunshine-beta.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew install --verbose --formula --build-bottle lizardbyte/homebrew/sunshine-beta` failed on Linux x86_64!

logger: { hasWarned: false, info: [Function: info], warn: [Function (anonymous)], warnOnce: [Function: warnOnce], error: [Function: error], clearScreen: [Function: clearScreen], hasErrorLogged: [Function: hasErrorLogged] }, packageCache: Map(5) { 'fnpd_/var/tmp/sunshine-beta-20251220-36477-d9ugo3' => { dir: '/var/tmp/sunshine-beta-20251220-36477-d9ugo3', data: { name: 'sunshine', version: '0.0.0', scripts: { build: 'vite build --debug', 'build-clean': 'vite build --debug --emptyOutDir', dev: 'vite build --watch', serve: 'serve ./tests/fixtures/http --no-port-switching' }, type: 'module', dependencies: { '@lizardbyte/shared-web': '2025.922.181114', vue: '3.5.25', 'vue-i18n': '11.2.2' }, devDependencies: { '@codecov/vite-plugin': '1.9.1', '@vitejs/plugin-vue': '6.0.1', serve: '14.2.5', vite: '6.3.6', 'vite-plugin-ejs': '1.7.0' } }, hasSideEffects: [Function: hasSideEffects], setResolvedCache: [Function: setResolvedCache], getResolvedCache: [Function: getResolvedCache] }, 'fnpd_/var/tmp/sunshine-beta-20251220-36477-d9ugo3/src_assets/common/assets/web' => { dir: '/var/tmp/sunshine-beta-20251220-36477-d9ugo3', data: { name: 'sunshine', version: '0.0.0', scripts: { build: 'vite build --debug', 'build-clean': 'vite build --debug --emptyOutDir', dev: 'vite build --watch', serve: 'serve ./tests/fixtures/http --no-port-switching' }, type: 'module', dependencies: { '@lizardbyte/shared-web': '2025.922.181114', vue: '3.5.25', 'vue-i18n': '11.2.2' }, devDependencies: { '@codecov/vite-plugin': '1.9.1', '@vitejs/plugin-vue': '6.0.1', serve: '14.2.5', vite: '6.3.6', 'vite-plugin-ejs': '1.7.0' } }, hasSideEffects: [Function: hasSideEffects], setResolvedCache: [Function: setResolvedCache], getResolvedCache: [Function: getResolvedCache] }, 'fnpd_/var/tmp/sunshine-beta-20251220-36477-d9ugo3/src_assets/common/assets' => { dir: '/var/tmp/sunshine-beta-20251220-36477-d9ugo3', data: { name: 'sunshine', version: '0.0.0', scripts: { build: 'vite build --debug', 'build-clean': 'vite build --debug --emptyOutDir', dev: 'vite build --watch', serve: 'serve ./tests/fixtures/http --no-port-switching' }, type: 'module', dependencies: { '@lizardbyte/shared-web': '2025.922.181114', vue: '3.5.25', 'vue-i18n': '11.2.2' }, devDependencies: { '@codecov/vite-plugin': '1.9.1', '@vitejs/plugin-vue': '6.0.1', serve: '14.2.5', vite: '6.3.6', 'vite-plugin-ejs': '1.7.0' } }, hasSideEffects: [Function: hasSideEffects], setResolvedCache: [Function: setResolvedCache], getResolvedCache: [Function: getResolvedCache] }, 'fnpd_/var/tmp/sunshine-beta-20251220-36477-d9ugo3/src_assets/common' => { dir: '/var/tmp/sunshine-beta-20251220-36477-d9ugo3', data: { name: 'sunshine', version: '0.0.0', scripts: { build: 'vite build --debug', 'build-clean': 'vite build --debug --emptyOutDir', dev: 'vite build --watch', serve: 'serve ./tests/fixtures/http --no-port-switching' }, type: 'module', dependencies: { '@lizardbyte/shared-web': '2025.922.181114', vue: '3.5.25', 'vue-i18n': '11.2.2' }, devDependencies: { '@codecov/vite-plugin': '1.9.1', '@vitejs/plugin-vue': '6.0.1', serve: '14.2.5', vite: '6.3.6', 'vite-plugin-ejs': '1.7.0' } }, hasSideEf
ENV["BRANCH"] = ""
ENV["BUILD_VERSION"] = "2025.1210.519"
ENV["COMMIT"] = "eb3afd43df290f51b30f1b8b9bef915f40ca969b"
Expand Down Expand Up @@ -238,3 +238,5 @@
end
end
end

# this comment is forcing bottle builds in https://github.com/LizardByte/homebrew-homebrew/pull/42
2 changes: 2 additions & 0 deletions Formula/s/sunshine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,5 @@ def caveats
end
end
end

# this comment is forcing bottle builds in https://github.com/LizardByte/homebrew-homebrew/pull/42
Loading