Skip to content

Commit bfaf798

Browse files
committed
[check.yml] Update MacOS runner and re-enable MacOS precommit action
The path of the `sed` binary on MacOS has changed going from Intel (macos-13) to M1 (macos-15).
1 parent 561a43b commit bfaf798

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/check.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,24 @@ jobs:
1818
matrix:
1919
cfg:
2020
- { name: 'Linux', os: 'ubuntu-24.04' }
21-
# - { name: 'MacOS', os: 'macos-13' }
21+
- { name: 'MacOS', os: 'macos-15' }
2222

2323
steps:
2424
- name: checkout
2525
uses: actions/checkout@v4
2626

2727
- name: install GNU tools
28-
if: matrix.cfg.os == 'macos-13'
28+
if: matrix.cfg.os == 'macos-15'
2929
run: |
3030
brew install gnu-sed
31-
echo "/usr/local/opt/gnu-sed/libexec/gnubin" >> ${GITHUB_PATH}
31+
echo "/opt/homebrew/opt/gnu-sed/libexec/gnubin" >> ${GITHUB_PATH}
3232
3333
- name: check-source.sh
3434
run: ../tools/check-source.sh
3535

3636
- name: update brew
37-
if: matrix.cfg.os == 'macos-13'
38-
run: |
39-
brew update
37+
if: matrix.cfg.os == 'macos-15'
38+
run: brew update
4039

4140
- name: update-apt-cache
4241
if: matrix.cfg.os == 'ubuntu-24.04'
@@ -47,7 +46,7 @@ jobs:
4746
run: sudo apt-get install latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended lmodern
4847

4948
- name: install (MacOS)
50-
if: matrix.cfg.os == 'macos-13'
49+
if: matrix.cfg.os == 'macos-15'
5150
run: |
5251
brew install basictex
5352
eval "$(/usr/libexec/path_helper)"
@@ -60,7 +59,7 @@ jobs:
6059
run: make quiet
6160

6261
- name: make (MacOS)
63-
if: matrix.cfg.os == 'macos-13'
62+
if: matrix.cfg.os == 'macos-15'
6463
run: make full
6564

6665
- name: check-output.sh

0 commit comments

Comments
 (0)