Skip to content

Commit

Permalink
Version 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Apr 21, 2022
1 parent cf16e40 commit cbc1429
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,18 @@ jobs:
docker run --name irk irk /bin/true
docker cp irk:/irk/irk irk
docker rm irk
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Java 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Build
run: ./irk

32 changes: 32 additions & 0 deletions irk
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh
# --------------------------
# Irk Launcher version 0.4.3
# --------------------------
#
# Irk is a simplistic build tool for Scala. This launcher script will download and run Irk, replacing this
# script in the process.
#
# For more information, see https://github.com/propensive/irk/
#
# Irk, version 0.4.3. Copyright 2021 Jon Pretty, Propensive OÜ.

if [ ! "$(command -v java)" ]
then
echo "It does not look like Java is installed. The 'java' command must be available on the path."
elif [ "$(java -version 2>&1 | head -n1 | awk -F '"' '{print $2}' | awk -F '.' '{print $1}')" -lt "11" ]
then
echo "It looks like the install version of Java is not recent enough. Java 11 is required to run Irk."
elif [ ! "$(command -v curl)" ]
then
echo "The 'curl' command must be available to download Irk. Please install Curl and try again."
else
echo "Downloading Irk 0.4.3..."
curl -Lso "$0.tmp" "https://github.com/propensive/irk/releases/download/v0.4.3/irk-0.4.3"
echo "Downloaded $(du -sh "$0.tmp" | cut -d' ' -f1)"
echo 'Launching Irk for the first time...'
chmod +x "$0.tmp"
mv "$0.tmp" "$0"
exec "$0" "$@"
fi
echo "Please install Java version 11 or later. See https://adoptium.net/ for free OpenJDK distributions."
exit 1

0 comments on commit cbc1429

Please sign in to comment.