Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from DeLaGuardo/notes-about-gu-using
Browse files Browse the repository at this point in the history
Add a note about how to use gu binary + add 21.0.0
  • Loading branch information
DeLaGuardo authored Jan 20, 2021
2 parents b990167 + 0676009 commit b4c1ed3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/self_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
binary: [java, java.exe]
graalvm-version: [19.3.0.java8, 19.3.0.java11, 20.0.0.java8, 20.0.0.java11, 20.1.0.java8, 20.1.0.java11, 20.2.0.java8, 20.2.0.java11]
gu-binary: [gu, gu.cmd]
graalvm-version: [19.3.0.java8, 19.3.0.java11, 20.0.0.java8, 20.0.0.java11, 20.1.0.java8, 20.1.0.java11, 20.2.0.java8, 20.2.0.java11, 20.3.0.java8, 20.3.0.java11, 20.3.1.java8, 20.3.1.java11, 21.0.0.java8, 21.0.0.java11]
exclude:
- os: ubuntu-latest
binary: java.exe
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,37 @@ steps:
- run: java -version
```
# Using GraalVM Component Updater (aka. gu)
`gu` binary is available as `gu` on ubuntu and macos, on windows - as `gu.cmd`.

``` yaml
jobs:
sample-job:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
gu-binary: [gu, gu.cmd]
exclude:
- os: ubuntu-latest
gu-binary: gu.cmd
- os: macos-latest
gu-binary: gu.cmd
- os: windows-latest
gu-binary: gu
steps:
- name: Setup Graalvm
id: setup-graalvm
uses: DeLaGuardo/setup-graalvm@master
with:
graalvm-version: '21.0.0.java11'
- name: Install native-image component
run: |
${{ matrix.gu-binary }} install native-image
```

# License

The scripts and documentation in this project are released under the [MIT License](LICENSE)

0 comments on commit b4c1ed3

Please sign in to comment.