-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from alexarchambault/java-8
Use Java 8
- Loading branch information
Showing
4 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,6 @@ jobs: | |
fetch-depth: 0 | ||
- uses: coursier/[email protected] | ||
- uses: coursier/[email protected] | ||
with: | ||
jvm: temurin:17 | ||
- name: Test | ||
run: ./scala-cli test . --cross --require-tests | ||
|
||
|
@@ -31,8 +29,6 @@ jobs: | |
fetch-depth: 0 | ||
- uses: coursier/[email protected] | ||
- uses: coursier/[email protected] | ||
with: | ||
jvm: temurin:17 | ||
- name: Release | ||
run: ./scala-cli publish . --cross | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,51 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
SC_EXEC="$(cs get "https://github.com/scala-cli/no-crc32-zip-input-stream/releases/download/scala-cli-launcher/scala-cli-x86_64-pc-linux-v2.gz" --archive)" | ||
chmod +x "$SC_EXEC" | ||
exec "$SC_EXEC" "$@" | ||
|
||
# This is the launcher script of Scala CLI (https://github.com/VirtusLab/scala-cli). | ||
# This script downloads and runs the Scala CLI version set by SCALA_CLI_VERSION below. | ||
# | ||
# Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/main/scala-cli.sh | ||
|
||
set -eu | ||
|
||
SCALA_CLI_VERSION="0.1.17" | ||
|
||
GH_ORG="VirtusLab" | ||
GH_NAME="scala-cli" | ||
|
||
if [ "$SCALA_CLI_VERSION" == "nightly" ]; then | ||
TAG="nightly" | ||
else | ||
TAG="v$SCALA_CLI_VERSION" | ||
fi | ||
|
||
if [ "$(expr substr $(uname -s) 1 5 2>/dev/null)" == "Linux" ]; then | ||
SCALA_CLI_URL="https://github.com/$GH_ORG/$GH_NAME/releases/download/$TAG/scala-cli-x86_64-pc-linux.gz" | ||
CACHE_BASE="$HOME/.cache/coursier/v1" | ||
elif [ "$(uname)" == "Darwin" ]; then | ||
SCALA_CLI_URL="https://github.com/$GH_ORG/$GH_NAME/releases/download/$TAG/scala-cli-x86_64-apple-darwin.gz" | ||
CACHE_BASE="$HOME/Library/Caches/Coursier/v1" | ||
else | ||
echo "This standalone scala-cli launcher is supported only in Linux and macOS. If you are using Windows, please use the dedicated launcher scala-cli.bat" | ||
exit 1 | ||
fi | ||
|
||
CACHE_DEST="$CACHE_BASE/$(echo "$SCALA_CLI_URL" | sed 's@://@/@')" | ||
SCALA_CLI_BIN_PATH=${CACHE_DEST%.gz} | ||
|
||
if [ ! -f "$CACHE_DEST" ]; then | ||
mkdir -p "$(dirname "$CACHE_DEST")" | ||
TMP_DEST="$CACHE_DEST.tmp-setup" | ||
echo "Downloading $SCALA_CLI_URL" | ||
curl -fLo "$TMP_DEST" "$SCALA_CLI_URL" | ||
mv "$TMP_DEST" "$CACHE_DEST" | ||
fi | ||
|
||
if [ ! -f "$SCALA_CLI_BIN_PATH" ]; then | ||
gunzip -k "$CACHE_DEST" | ||
fi | ||
|
||
if [ ! -x "$SCALA_CLI_BIN_PATH" ]; then | ||
chmod +x "$SCALA_CLI_BIN_PATH" | ||
fi | ||
|
||
exec "$SCALA_CLI_BIN_PATH" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters