Skip to content

Commit a57e57e

Browse files
committed
mac testing improvements
- add testing matrix: test now macos-14 and macos-15, drop deprecated macos-13 - make sure Tk builds on macos-14 and newer
1 parent ab3080f commit a57e57e

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/test_mac.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ on:
77

88
jobs:
99
test_mac:
10-
runs-on: macos-13
10+
name: Built BBBike on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
#- os: macos-13
17+
- os: macos-14
18+
- os: macos-15
1119
steps:
1220
- uses: actions/checkout@v4
1321
with:
@@ -37,10 +45,19 @@ jobs:
3745
(sleep 10; twm) &
3846
echo "DISPLAY=:123" >> $GITHUB_ENV
3947
40-
- name: Install prerequisites (cpan)
48+
- name: Install cpanminus
4149
run: |
42-
set -ex
4350
brew install cpanminus
51+
- name: Install Tk
52+
# special treatment necessary: env vars need to be set so JPEG/Makefile.PL works
53+
env:
54+
CPATH: /opt/homebrew/include
55+
LIBRARY_PATH: /opt/homebrew/lib
56+
run: |
57+
cpanm --quiet --notest Tk
58+
- name: Install CPAN dependencies
59+
run: |
60+
set -ex
4461
PATH="/usr/local/opt/libxml2/bin:$PATH" LDFLAGS="-L/usr/local/opt/libxml2/lib" CPPFLAGS="-I/usr/local/opt/libxml2/include" PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig" cpanm --quiet --notest XML::LibXML || ( cat ~/.cpanm/work/*/build.log; false )
4562
# https://rt.cpan.org/Ticket/Display.html?id=153923
4663
cpanm --quiet 'GD~<=2.78'
@@ -66,7 +83,6 @@ jobs:
6683
Template \
6784
Text::Unidecode \
6885
Tie::IxHash \
69-
Tk \
7086
YAML::XS \
7187
XML::Twig \
7288
|| ( cat ~/.cpanm/work/*/build.log; false )

0 commit comments

Comments
 (0)