Skip to content

Commit 1b81787

Browse files
committed
ci: update workflows to use official actions
1 parent 1cc10bf commit 1b81787

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,15 @@ jobs:
1616
- macos-15
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- name: Set up Homebrew
20-
id: set-up-homebrew
21-
uses: Homebrew/actions/setup-homebrew@master
19+
- name: Pre-test steps
20+
uses: Homebrew/actions/pre-build@master
21+
with:
22+
bottles-directory: ${{ github.workspace }}
2223

2324
- name: Install dependencies
2425
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04' }}
2526
run: sudo apt update && sudo apt install libpcsclite1
2627

27-
- name: Cache Homebrew Bundler RubyGems
28-
id: cache
29-
uses: actions/cache@v4
30-
with:
31-
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
32-
key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
33-
restore-keys: ${{ matrix.os }}-rubygems-
34-
35-
- name: Install Homebrew Bundler RubyGems
36-
if: steps.cache.outputs.cache-hit != 'true'
37-
run: brew install-bundler-gems
38-
3928
- run: brew test-bot --only-cleanup-before
4029

4130
- run: brew test-bot --only-setup
@@ -45,9 +34,11 @@ jobs:
4534
- run: brew test-bot --only-formulae
4635
if: github.event_name == 'pull_request'
4736

48-
- name: Upload bottles as artifact
49-
if: always() && github.event_name == 'pull_request'
50-
uses: actions/upload-artifact@v4
37+
- name: Post-build steps
38+
if: always()
39+
uses: Homebrew/actions/post-build@master
5140
with:
52-
name: bottles
53-
path: '*.bottle.*'
41+
runner: ${{ matrix.os }}
42+
bottles-directory: ${{ github.workspace }}
43+
logs-directory: ${{ format('{0}/logs', github.workspace) }}
44+
upload-bottles: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)