Skip to content

Commit

Permalink
Merge pull request #89 from rgoldberg/88-release
Browse files Browse the repository at this point in the history
Finish release overhaul
  • Loading branch information
rgoldberg authored Dec 27, 2024
2 parents 02f0d88 + dd4b57f commit e3ff554
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ name: brew pr-pull
on:
pull_request_target:
types: [labeled]
defaults:
run:
shell: /bin/zsh -Negku {0}
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ jobs:

- run: brew test-bot --only-tap-syntax

- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'

- name: Rename bottle
- name: Build, test & modify bottle to be for oldest macOS version supported by the current platform
if: github.event_name == 'pull_request'
run: |
autoload zmv
if [[ "${ImageOS}" = macos15 ]]; then
(zmv 'mas-(*).arm64_sequoia.bottle.tar.gz' 'mas-$1.arm64_big_sur.bottle.tar.gz') || true
built=sequoia
deploy=big_sur
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
else
(zmv 'mas-(*).ventura.bottle.tar.gz' 'mas-$1.high_sierra.bottle.tar.gz') || true
built=ventura
deploy=high_sierra
fi
- name: Download 1.8.6 bottle
if: github.event_name == 'pull_request' && matrix.os == 'macos-15'
run: |
curl -LO https://github.com/mas-cli/mas/releases/download/v1.8.6/mas-1.8.6.el_capitan.bottle.tar.gz
brew test-bot --only-formulae
autoload zmv
zmv "(*)${built}(*)" "\$1${deploy}\$2"
[[ -n *"${deploy}.bottle.json"(#qN) ]] && sed -i '' "s/${built}/${deploy}/g" *"${deploy}.bottle.json" || true
- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
Expand Down

0 comments on commit e3ff554

Please sign in to comment.