Skip to content

Commit

Permalink
updated workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Jan 15, 2024
1 parent 1359431 commit 25c187a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ on:
pull_request_target:
types:
- labeled

env:
HOMEBREW_NO_INSTALL_FROM_API: 1

permissions:
actions: read
contents: write
pull-requests: write

jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ on:
branches:
- main
pull_request:

env:
HOMEBREW_NO_INSTALL_FROM_API: 1
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test-bot:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-11, macos-12, macos-13]
os: [ubuntu-latest, macos-12, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
Expand All @@ -30,6 +32,10 @@ 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
Expand All @@ -41,7 +47,7 @@ jobs:

- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
uses: actions/upload-artifact@v3
with:
name: bottles
path: '*.bottle.*'
Expand Down

0 comments on commit 25c187a

Please sign in to comment.