Skip to content

Commit 7e6178a

Browse files
committed
Add debugging steps to workflow for macos-12. Add manual bottling for all macos versions, without --no-commit to see if successful jobs will go ahead and add their bottled to the formula. Added macos-latest to see if it s macos-14, and if we can get away with skipping macos-12 if we can't figure out which dependencies to use for that version.
1 parent ee4564f commit 7e6178a

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

Diff for: .github/workflows/tests.yml

+29-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
test-bot:
99
strategy:
1010
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]
1212
runs-on: ${{ matrix.os }}
1313
env:
1414
HOMEBREW_NO_INSTALL_FROM_API: 1
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Cache Homebrew Bundler RubyGems
2121
id: cache
22-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2323
with:
2424
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
2525
key: ${{ matrix.os }}-cache-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
@@ -29,6 +29,19 @@ jobs:
2929
if: steps.cache.outputs.cache-hit != 'true'
3030
run: brew install-bundler-gems
3131

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+
3245
- run: brew test-bot --only-cleanup-before
3346

3447
- run: brew test-bot --only-setup
@@ -38,9 +51,22 @@ jobs:
3851
- run: brew test-bot --only-formulae
3952
if: github.event_name == 'pull_request'
4053

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+
4167
- name: Upload bottles as artifact
4268
if: always() && github.event_name == 'pull_request'
43-
uses: actions/upload-artifact@v3
69+
uses: actions/upload-artifact@v4
4470
with:
4571
name: bottles
4672
path: '*.bottle.*'

0 commit comments

Comments
 (0)