File tree Expand file tree Collapse file tree 1 file changed +24
-30
lines changed Expand file tree Collapse file tree 1 file changed +24
-30
lines changed Original file line number Diff line number Diff line change 7
7
workflow_dispatch :
8
8
9
9
jobs :
10
- build :
11
- runs-on : macos-latest
10
+ general :
11
+ strategy :
12
+ matrix :
13
+ version : [12, 13, 14, 15]
14
+ runs-on : macOS-${{ matrix.version }}
12
15
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
+ MATRIX_VERSION="${{ matrix.version }}"
20
+ OS_NAME="$(case "${MATRIX_VERSION}" in \
21
+ "15") echo Sequoia;; \
22
+ "14") echo Sonoma;; \
23
+ "13") echo Ventura;; \
24
+ "12") echo Montery;; \
25
+ *) exit 1;; \
26
+ esac)"
27
+ MACPORTS_VERSION=2.10.5
28
+ MACPORTS_PKG_NAME="MacPorts-${MACPORTS_VERSION}-${MATRIX_VERSION}-${OS_NAME}.pkg"
29
+ MACPORTS_URL="https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${MACPORTS_PKG_NAME}"
30
+ wget "${MACPORTS_URL}" --output-document "${MACPORTS_PKG_NAME}"
31
+ sudo installer -pkg "./${MACPORTS_PKG_NAME}" -target /
32
+ sudo /opt/local/bin/port install check
33
+ - name : make check
34
+ run : make check
You can’t perform that action at this time.
0 commit comments