From 0fe65e4b8b9d57bd5ed3598a7d6d365e426dbb64 Mon Sep 17 00:00:00 2001 From: Kirill Chernyshov Date: Wed, 20 Jan 2021 09:36:28 +0100 Subject: [PATCH 1/4] Add a note about how to use gu binary + add 21.0.0 --- .github/workflows/self_check.yml | 10 +++++++++- README.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml index 0db99e5..1fd47a7 100644 --- a/.github/workflows/self_check.yml +++ b/.github/workflows/self_check.yml @@ -9,14 +9,18 @@ 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 + gu-binary: gu.cmd - os: macos-latest binary: java.exe + gu-binary: gu.cmd - os: windows-latest binary: java + gu-binary: gu steps: - name: Setup Graalvm id: setup-graalvm @@ -27,3 +31,7 @@ jobs: - name: Check if binary is available run: | ${{ matrix.binary }} -version + + - name: Check if components can be installed using gu + run: | + ${{ matrix.gu-binary }} install native-image diff --git a/README.md b/README.md index 8c2bc2e..9976254 100644 --- a/README.md +++ b/README.md @@ -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) From 38de662df12a4ae40eeea95dc0551e5d22fe1169 Mon Sep 17 00:00:00 2001 From: Kirill Chernyshov Date: Wed, 20 Jan 2021 09:41:33 +0100 Subject: [PATCH 2/4] Fix exclude in self-check --- .github/workflows/self_check.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml index 1fd47a7..571b344 100644 --- a/.github/workflows/self_check.yml +++ b/.github/workflows/self_check.yml @@ -14,12 +14,15 @@ jobs: exclude: - os: ubuntu-latest binary: java.exe - gu-binary: gu.cmd - os: macos-latest binary: java.exe - gu-binary: gu.cmd - os: windows-latest binary: java + - os: ubuntu-latest + gu-binary: gu.cmd + - os: macos-latest + gu-binary: gu.cmd + - os: windows-latest gu-binary: gu steps: - name: Setup Graalvm From 1628fc14fd4fc70ea6abe1ca7b6c7bdb90b98274 Mon Sep 17 00:00:00 2001 From: Kirill Chernyshov Date: Wed, 20 Jan 2021 10:07:53 +0100 Subject: [PATCH 3/4] fix --- .github/workflows/self_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml index 571b344..5abb656 100644 --- a/.github/workflows/self_check.yml +++ b/.github/workflows/self_check.yml @@ -37,4 +37,4 @@ jobs: - name: Check if components can be installed using gu run: | - ${{ matrix.gu-binary }} install native-image + ${{ matrix.gu-binary }} list From 0676009e43d632946d4b2585ef9da182b56dbec2 Mon Sep 17 00:00:00 2001 From: Kirill Chernyshov Date: Wed, 20 Jan 2021 10:11:48 +0100 Subject: [PATCH 4/4] fix --- .github/workflows/self_check.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml index 5abb656..d518eed 100644 --- a/.github/workflows/self_check.yml +++ b/.github/workflows/self_check.yml @@ -18,12 +18,6 @@ jobs: binary: java.exe - os: windows-latest binary: java - - 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 @@ -34,7 +28,3 @@ jobs: - name: Check if binary is available run: | ${{ matrix.binary }} -version - - - name: Check if components can be installed using gu - run: | - ${{ matrix.gu-binary }} list