Skip to content

Commit 4c205a3

Browse files
committed
mrsh via MacPorts
1 parent 93d3ea8 commit 4c205a3

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/stack-size.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ jobs:
6767
# TODO: `posh` is packaged but doesn't work: https://github.com/serai-dex/serai/issues/703
6868
brew install ksh93 bash dash-shell zsh mksh oksh yash oils-for-unix
6969
SHELLS="sh ksh bash dash zsh mksh oksh yash osh"
70+
71+
# macOS also has the benefit of packaging (via MacPorts) `mrsh`,
72+
# which explicitly attempts to be be exactly POSIX, without any extensions.
73+
# We first have to install MacPorts, the easiest method being via source.
74+
curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.11.6.tar.bz2
75+
tar xf MacPorts-2.11.6.tar.bz2
76+
cd MacPorts-2.11.6
77+
./configure
78+
make
79+
sudo make install
80+
cd ..
81+
82+
# Now, we install `mrsh`.
83+
sudo port install mrsh
84+
SHELLS="$SHELLS mrsh"
7085
fi
7186
7287
# Install shells available via `cargo`

0 commit comments

Comments
 (0)