|
8 | 8 | test-bot:
|
9 | 9 | strategy:
|
10 | 10 | matrix:
|
11 |
| - os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13] |
| 11 | + os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, macos-latest] |
12 | 12 | runs-on: ${{ matrix.os }}
|
13 | 13 | env:
|
14 | 14 | HOMEBREW_NO_INSTALL_FROM_API: 1
|
|
19 | 19 |
|
20 | 20 | - name: Cache Homebrew Bundler RubyGems
|
21 | 21 | id: cache
|
22 |
| - uses: actions/cache@v3 |
| 22 | + uses: actions/cache@v4 |
23 | 23 | with:
|
24 | 24 | path: ${{ steps.set-up-homebrew.outputs.gems-path }}
|
25 | 25 | key: ${{ matrix.os }}-cache-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
|
29 | 29 | if: steps.cache.outputs.cache-hit != 'true'
|
30 | 30 | run: brew install-bundler-gems
|
31 | 31 |
|
| 32 | + # New step: Collect extra debug information for macOS-12 |
| 33 | + - name: Brew info on openssl@3 and zlib (macos-12) |
| 34 | + if: matrix.os == 'macos-12' |
| 35 | + run: | |
| 36 | + brew info openssl@3 |
| 37 | + brew info zlib |
| 38 | +
|
| 39 | + - name: Collect diagnostics for macOS-12 |
| 40 | + if: matrix.os == 'macos-12' |
| 41 | + run: | |
| 42 | + brew config |
| 43 | + brew doctor |
| 44 | +
|
32 | 45 | - run: brew test-bot --only-cleanup-before
|
33 | 46 |
|
34 | 47 | - run: brew test-bot --only-setup
|
|
38 | 51 | - run: brew test-bot --only-formulae
|
39 | 52 | if: github.event_name == 'pull_request'
|
40 | 53 |
|
| 54 | + # New Step: Run `brew bottle` and commit formula updates |
| 55 | + - name: Build bottles and update formula |
| 56 | + if: matrix.os == 'macos-12' |
| 57 | + run: | |
| 58 | + brew bottle coverallsapp/coveralls/coveralls |
| 59 | + brew bottle --merge --write ./coveralls--0.6.15.*.bottle.json |
| 60 | + git config --global user.name "GitHub Actions" |
| 61 | + git config --global user.email "[email protected]" |
| 62 | + git add Formula/coveralls.rb |
| 63 | + git commit -m "Update formula with new bottle hashes for ${{ matrix.os }}" |
| 64 | + env: |
| 65 | + HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 66 | + |
41 | 67 | - name: Upload bottles as artifact
|
42 | 68 | if: always() && github.event_name == 'pull_request'
|
43 |
| - uses: actions/upload-artifact@v3 |
| 69 | + uses: actions/upload-artifact@v4 |
44 | 70 | with:
|
45 | 71 | name: bottles
|
46 | 72 | path: '*.bottle.*'
|
0 commit comments