Skip to content

Commit

Permalink
Nightly version emudbg 0.2+202403192028-2
Browse files Browse the repository at this point in the history
  • Loading branch information
dciabrin committed Jan 1, 2025
1 parent d507b0a commit 1e6e355
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 106 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/build-bottles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Build bottles for Homebrew formula
on:
push:
branches:
- nightly/*
jobs:
current_os:
name: "Current macOS"
runs-on: macos-15
env:
OS: '15'
BRANCH: ${{ github.ref }}
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Bottle formula
run: |
rm -rf .github
.ci/setup-brew-environment.sh --update
.ci/bottle-formula.sh
git diff Formula/* | tee bottle-current.diff
- name: Capture bottle and hashe for next job
uses: actions/upload-artifact@v4
with:
name: bottle_current
path: |
bottle-current.diff
*.bottle.json
*.bottle*.tar.gz
previous_os:
name: "Previous macOS"
runs-on: macos-14
env:
OS: '14'
BRANCH: ${{ github.ref }}
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Bottle formula
run: |
rm -rf .github
.ci/setup-brew-environment.sh --update
.ci/bottle-formula.sh
git diff Formula/* | tee bottle-previous.diff
- name: Capture bottles and hashes for next job
uses: actions/upload-artifact@v4
with:
name: bottle_previous
path: |
bottle-previous.diff
*.bottle.json
*.bottle*.tar.gz
publish:
name: "Publish new version and bottles"
runs-on: macos-latest
needs: [current_os, previous_os]
env:
BRANCH: ${{ github.ref }}
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Retrieve bottle data for current macOS
uses: actions/download-artifact@v4
with:
name: bottle_current

- name: Retrieve bottle data for previous macOS
uses: actions/download-artifact@v4
with:
name: bottle_previous

- name: Merge formula update
run: |
cat bottle-current.diff | awk '/cellar/ { system("grep -h cellar bottle-*.diff"); next;} {print $0}' > all-bottles.diff
cat all-bottles.diff
patch -p1 < all-bottles.diff
# Publishing the new version prior to the bottles, because
# the bottle are bundled in a github archive which comes
# with a new tag in the git repo. So all the patches must be
# prior to the bottles.
# Until bottles are published, there's a small time window
# where 'brew install <pkg>' won't find bottles and rebuild
# from source. The inconvenience is assumed to be minimal.
# - name: Publish Formula version and bottles
# run: |
# .ci/setup-brew-environment.sh
# .ci/publish-new-formula-version.sh
# .ci/publish-new-formula-bottles.sh
18 changes: 18 additions & 0 deletions .github/workflows/cleanup-old-bottles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Clean up old published bottles
on:
push:
branches:
- 'master'
paths:
- 'Formula/**'

jobs:
rmbottles:
name: "Remove old ngdevkit bottles"
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Remove old ngdevkit bottles
run: .ci/gc-projects-nightly-bottles.sh
7 changes: 1 addition & 6 deletions Formula/emudbg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ class Emudbg < Formula
desc "Emulator-agnostic source-level debugging API"
homepage "https://github.com/dciabrin/emudbg"
url "https://github.com/dciabrin/emudbg/archive/refs/tags/nightly-202403192028.tar.gz"
version "0.2+202403192028-1"
version "0.2+202403192028-2"
sha256 "56306dd13bebcf001bcf340695b05d225bf077fc9ef99283db8f46eaf019e536"

bottle do
root_url "https://github.com/dciabrin/homebrew-ngdevkit/releases/download/emudbg-0.2+202403192028-1"
sha256 cellar: :any_skip_relocation, monterey: "34be83e2846c598370ee3d145bf24f180d939945df02d13f59db0c0d427ef3d6"
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
Expand Down
18 changes: 0 additions & 18 deletions azure-pipelines-formulas.yml

This file was deleted.

82 changes: 0 additions & 82 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 1e6e355

Please sign in to comment.