mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Add elfutils on macOS
This commit is contained in:
25
.github/workflows/stack-size.yml
vendored
25
.github/workflows/stack-size.yml
vendored
@@ -39,18 +39,6 @@ jobs:
|
||||
run: |
|
||||
STACK=$((8 * 1024 * 1024))
|
||||
|
||||
cp monerod monerod-chelf
|
||||
git clone https://github.com/Gottox/chelf
|
||||
cd chelf
|
||||
git checkout b2994186cea7b7d61a588fd06c1cc1ae75bcc21a
|
||||
make
|
||||
./chelf -s "$STACK" ../monerod-chelf
|
||||
cd ..
|
||||
|
||||
cp monerod monerod-muslstack
|
||||
GOBIN=$(pwd) go install github.com/yaegashi/muslstack@d19cc5866abce3ca59dfc1666df7cc97097d0933
|
||||
./muslstack -s "$STACK" ./monerod-muslstack
|
||||
|
||||
OS=${{ runner.os }}
|
||||
if [ "$OS" = "Linux" ]; then
|
||||
sudo apt update -y
|
||||
@@ -61,6 +49,7 @@ jobs:
|
||||
fi
|
||||
# macOS has the benefit of packaging `oksh`, `osh`, and having distinct core tools
|
||||
if [ "$OS" = "macOS" ]; then
|
||||
brew install elfutils # Install `elfutils` for `chelf` has `elf.h` available
|
||||
brew install ksh93 bash dash-shell zsh posh mksh oksh yash oils-for-unix
|
||||
SHELLS="sh ksh bash dash zsh posh mksh oksh yash osh"
|
||||
fi
|
||||
@@ -75,6 +64,18 @@ jobs:
|
||||
GOBIN=$(pwd) go install github.com/u-root/u-root/cmds/core/gosh@latest
|
||||
SHELLS="$SHELLS gosh"
|
||||
|
||||
cp monerod monerod-chelf
|
||||
git clone https://github.com/Gottox/chelf
|
||||
cd chelf
|
||||
git checkout b2994186cea7b7d61a588fd06c1cc1ae75bcc21a
|
||||
make
|
||||
./chelf -s "$STACK" ../monerod-chelf
|
||||
cd ..
|
||||
|
||||
cp monerod monerod-muslstack
|
||||
GOBIN=$(pwd) go install github.com/yaegashi/muslstack@d19cc5866abce3ca59dfc1666df7cc97097d0933
|
||||
./muslstack -s "$STACK" ./monerod-muslstack
|
||||
|
||||
# Run our script with all installed shells
|
||||
for shell in $SHELLS; do
|
||||
cp monerod monerod-idss-$shell
|
||||
|
||||
Reference in New Issue
Block a user