Skip to content

Commit 660f94a

Browse files
committed
install macports
1 parent e046064 commit 660f94a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/check.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,30 @@ jobs:
1111
runs-on: macos-latest
1212
steps:
1313
- 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
1439
- name: make check
1540
run: make check

0 commit comments

Comments
 (0)