Skip to content

Commit 3fe341b

Browse files
Add missing scripts
1 parent da02ad2 commit 3fe341b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/scripts/ci-setup.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
if [ $# = 1 ]; then
5+
DIR="$1"
6+
else
7+
DIR="$HOME/.bin"
8+
fi
9+
mkdir -p "$DIR"
10+
11+
export PATH="$DIR:$PATH"
12+
13+
COURSIER_VERSION="2.0.0-RC6-7"
14+
MILL_VERSION="0.6.0"
15+
16+
if [ ! -x "$DIR/cs-$COURSIER_VERSION" ]; then
17+
curl -Lo "$DIR/cs-$COURSIER_VERSION" \
18+
"https://github.com/coursier/coursier/releases/download/v$COURSIER_VERSION/cs-x86_64-pc-linux"
19+
chmod +x "$DIR/cs-$COURSIER_VERSION"
20+
rm -f "$DIR/cs"
21+
( cd "$DIR" && ln -s "cs-$COURSIER_VERSION" cs )
22+
fi
23+
24+
"$DIR/cs" install --dir "$DIR" \
25+
"mill:$MILL_VERSION" \
26+
sbt-launcher
27+
28+
"$DIR/cs" bootstrap -o "$DIR/amm" \
29+
com.lihaoyi:ammonite_2.13.2:2.1.4 \
30+
-M ammonite.Main

.github/scripts/gpg-setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env sh
2+
3+
echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes
4+
5+
echo "allow-loopback-pinentry" >>~/.gnupg/gpg-agent.conf
6+
echo "pinentry-mode loopback" >>~/.gnupg/gpg.conf
7+
8+
gpg-connect-agent reloadagent /bye

0 commit comments

Comments
 (0)