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: |
|
run: |
|
||||||
STACK=$((8 * 1024 * 1024))
|
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 }}
|
OS=${{ runner.os }}
|
||||||
if [ "$OS" = "Linux" ]; then
|
if [ "$OS" = "Linux" ]; then
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
@@ -61,6 +49,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
# macOS has the benefit of packaging `oksh`, `osh`, and having distinct core tools
|
# macOS has the benefit of packaging `oksh`, `osh`, and having distinct core tools
|
||||||
if [ "$OS" = "macOS" ]; then
|
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
|
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"
|
SHELLS="sh ksh bash dash zsh posh mksh oksh yash osh"
|
||||||
fi
|
fi
|
||||||
@@ -75,6 +64,18 @@ jobs:
|
|||||||
GOBIN=$(pwd) go install github.com/u-root/u-root/cmds/core/gosh@latest
|
GOBIN=$(pwd) go install github.com/u-root/u-root/cmds/core/gosh@latest
|
||||||
SHELLS="$SHELLS gosh"
|
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
|
# Run our script with all installed shells
|
||||||
for shell in $SHELLS; do
|
for shell in $SHELLS; do
|
||||||
cp monerod monerod-idss-$shell
|
cp monerod monerod-idss-$shell
|
||||||
|
|||||||
Reference in New Issue
Block a user