generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to install custom Java version
- Loading branch information
Olafur Pall Geirsson
committed
Oct 10, 2020
1 parent
6577ca3
commit 2fc21c6
Showing
3 changed files
with
67 additions
and
22 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
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,15 +1,16 @@ | ||
# Setup Scala GitHub Action | ||
|
||
A GitHub Action to install Java via [Jabba](https://github.com/shyiko/jabba) | ||
and sbt. | ||
A GitHub Action to install Java via [Jabba](https://github.com/shyiko/jabba) and | ||
sbt. | ||
|
||
- Configurable Java version: supports OpenJDK, GraalVM, Zulu and any other Java | ||
version that's installable via Jabba. | ||
- The `sbt` command is installed using the | ||
[paulp/sbt-extras](https://github.com/paulp/sbt-extras/) launcher. | ||
- For faster startup, the `csbt` command is installed using the Coursier-based | ||
[coursier/sbt-extras](https://github.com/coursier/sbt-extras/) launcher. This launcher | ||
does not work with all builds, only use `csbt` if you know what you are doing. | ||
[coursier/sbt-extras](https://github.com/coursier/sbt-extras/) launcher. This | ||
launcher does not work with all builds, only use `csbt` if you know what you | ||
are doing. | ||
- Cross-platform: works on Linux, macOS, Windows. | ||
|
||
## Usage: | ||
|
@@ -58,6 +59,8 @@ More Java version examples: | |
- `graalvm@`: the latest GraalVM | ||
- `[email protected]`: the latest OpenJDK 14 version | ||
- `[email protected]`: the latest Zulu OpenJDK 11 | ||
- `[email protected]=tgz+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.2.0/graalvm-ce-java11-linux-aarch64-20.2.0.tar.gz`: | ||
custom Java version from a URL | ||
|
||
## Tips and tricks | ||
|
||
|
@@ -118,11 +121,12 @@ configure git to disable Windows line feeds. | |
|
||
### Faster checkout of big repos | ||
|
||
Your repository can have a lot of commits, or branches with bulk resources. | ||
The v2 version of `actions/checkout` doesn't fetch a whole repo by default | ||
that can speed up builds greatly. But an additional configuration can be | ||
required to fetch tags up to some level of depth for some builds which check | ||
binary compatibility with previous tagged release from the branch. | ||
Your repository can have a lot of commits, or branches with bulk resources. The | ||
v2 version of `actions/checkout` doesn't fetch a whole repo by default that can | ||
speed up builds greatly. But an additional configuration can be required to | ||
fetch tags up to some level of depth for some builds which check binary | ||
compatibility with previous tagged release from the branch. | ||
|
||
```diff | ||
+++ .github/workflows/ci.yml | ||
name: CI | ||
|
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