Skip to content

Commit 5d399fb

Browse files
committed
build matrix
1 parent 660f94a commit 5d399fb

File tree

1 file changed

+17
-30
lines changed

1 file changed

+17
-30
lines changed

.github/workflows/check.yaml

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,21 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
build:
11-
runs-on: macos-latest
10+
general:
11+
strategy:
12+
matrix:
13+
version: [15]
14+
runs-on: macOS-${{ matrix.version }}
1215
steps:
13-
- uses: actions/checkout@v4
14-
- name: install MacPorts
15-
run: |
16-
OS_NAME="$(case ${{ matrix.version }} in
17-
15)
18-
echo Sequoia
19-
;;
20-
14)
21-
echo Sonoma
22-
;;
23-
13)
24-
echo Ventura
25-
;;
26-
12)
27-
echo Montery
28-
;;
29-
*)
30-
exit 1
31-
;;
32-
esac)"
33-
MACPORTS_VERSION=2.10.5
34-
MACPORTS_PKG_NAME="MacPorts-${MACPORTS_VERSION}-${{ matrix.version }}-${OS_NAME}.pkg"
35-
MACPORTS_URL="https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${MACPORTS_PKG_NAME}"
36-
wget -o "${MACPORTS_PKG_NAME}" "${MACPORTS_URL}"
37-
sudo installer -pkg "${MACPORTS_PKG_NAME}" -target /
38-
sudo /opt/local/bin/port install check
39-
- name: make check
40-
run: make check
16+
- uses: actions/checkout@v4
17+
- name: install MacPorts
18+
run: |
19+
OS_NAME="$(case "${{ matrix.version }}" in "15") echo Sequoia;; "14") echo Sonoma;; "13") echo Ventura;; "12") echo Montery;; *) exit 1;; esac)"
20+
MACPORTS_VERSION=2.10.5
21+
MACPORTS_PKG_NAME="MacPorts-${MACPORTS_VERSION}-${{ matrix.version }}-${OS_NAME}.pkg"
22+
MACPORTS_URL="https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${MACPORTS_PKG_NAME}"
23+
wget -o "${MACPORTS_PKG_NAME}" "${MACPORTS_URL}"
24+
sudo installer -pkg "${MACPORTS_PKG_NAME}" -target /
25+
sudo /opt/local/bin/port install check
26+
- name: make check
27+
run: make check

0 commit comments

Comments
 (0)