Skip to content

Commit

Permalink
switched to using GitHub Packages for storing bottles
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Mar 20, 2024
1 parent fd66f64 commit 54224e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ on:

env:
HOMEBREW_NO_INSTALL_FROM_API: 1

permissions:
actions: read
contents: write
pull-requests: write
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -25,7 +22,6 @@ jobs:

- name: Pull bottles
env:
HOMEBREW_NO_INSTALL_FROM_API: 1
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ jobs:
# query whether all dependencies are bottled
- run: brew unbottled Macaulay2

- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

- run: brew test-bot --only-cleanup-before

- run: brew test-bot --only-setup

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

- run: brew test-bot --only-formulae --verbose
- run: brew test-bot --only-formulae --verbose --root-url=https://ghcr.io/v2/macaulay2/tap
if: github.event_name == 'pull_request'

- name: Upload bottles as artifact
Expand Down

0 comments on commit 54224e6

Please sign in to comment.