Skip to content

Commit

Permalink
[no ci] update tests.yml and publish.yml workflows for github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatch committed May 21, 2024
1 parent dc55e9f commit 83cefaa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
# NOTE: ipatch, don't macos runner to publish bottles
# NOTE: ipatch, don't use macos runner to publish bottles
# SEE: https://github.com/orgs/Homebrew/discussions/4938#discussioncomment-7721218
# runs-on: [ macos-latest ]

Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Restore last run status
id: restore_last_run_status
uses: actions/cache@v3.2.2
uses: actions/cache@v4.0.2
with:
path: |
last_run_status
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Cache Homebrew Bundler RubyGems
if: steps.last_run_status.outputs.last_run_status != 'success'
id: cache
uses: actions/cache@v3.2.2
uses: actions/cache@v4.0.2
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
Expand Down Expand Up @@ -127,11 +127,15 @@ jobs:
-e '/go@1.12/d' \
$(brew --repo homebrew/core)/style_exceptions/binary_bootstrap_formula_urls_allowlist.json
# NOTE: ipatch, env var required, see, https://github.com/orgs/Homebrew/discussions/4856
- name: unset HOMEBREW_NO_INSTALL_FROM_API for linux runners
run: |
if [[ $RUNNER_OS == 'Linux' ]]; then
unset HOMEBREW_NO_INSTALL_FROM_API
fi
- name: build bottle using test-bot for current formula
id: build_bottle
# NOTE: ipatch, below env var required, see, https://github.com/orgs/Homebrew/discussions/4856
env:
HOMEBREW_NO_INSTALL_FROM_API: 1
run: |
# Check if the runner name is vmmojave or vmcatalina and add the flag if true
# NOTE: ipatch, keep-old is not the droid you're looking for,
Expand Down Expand Up @@ -173,7 +177,7 @@ jobs:
- name: Upload bottles as artifact
id: upload_bottle_artifacts
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: bottles
path: '*.bottle.*'
Expand Down

0 comments on commit 83cefaa

Please sign in to comment.