Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/scripts/maybe-with-graalvm-home.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
set -e

if [[ "$OSTYPE" == "msys" ]]; then
./mill.bat -i ci.copyJvm --dest jvm
if [[ ! -e jvm ]]; then
./mill.bat -i ci.copyJvm --dest jvm
fi
export GRAALVM_HOME="$(pwd -W | sed 's,/,\\,g')\\jvm"
echo "GRAALVM_HOME=$GRAALVM_HOME"

Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

generate-native-launchers:
name: Upload native launcher ${{ matrix.OS }}
name: Test and upload native launcher ${{ matrix.OS }}
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.OS }}
strategy:
fail-fast: false
Expand All @@ -202,6 +201,10 @@ jobs:
- uses: coursier/[email protected]
with:
jvm: 8
- run: sudo apt-get install -y nailgun
if: runner.os == 'Linux'
- run: .github/scripts/maybe-with-graalvm-home.sh nativeTests
shell: bash
- name: Copy artifacts
run: .github/scripts/maybe-with-graalvm-home.sh copyLauncher artifacts/
shell: bash
Expand All @@ -213,9 +216,8 @@ jobs:
retention-days: 2

generate-native-static-launcher:
name: Upload native static launcher
name: Test and upload native static launcher
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
Expand All @@ -226,6 +228,10 @@ jobs:
- uses: coursier/[email protected]
with:
jvm: 8
- run: sudo apt-get install -y nailgun
if: runner.os == 'Linux'
- run: .github/scripts/maybe-with-graalvm-home.sh nativeStaticTests
shell: bash
- name: Copy artifacts
run: .github/scripts/maybe-with-graalvm-home.sh copyStaticLauncher artifacts/
shell: bash
Expand All @@ -237,9 +243,8 @@ jobs:
retention-days: 2

generate-native-mostly-static-launcher:
name: Upload native mostly static launcher
name: Test and upload native mostly static launcher
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
Expand All @@ -250,6 +255,10 @@ jobs:
- uses: coursier/[email protected]
with:
jvm: 8
- run: sudo apt-get install -y nailgun
if: runner.os == 'Linux'
- run: .github/scripts/maybe-with-graalvm-home.sh nativeMostlyStaticTests
shell: bash
- name: Copy artifacts
run: .github/scripts/maybe-with-graalvm-home.sh copyMostlyStaticLauncher artifacts/
shell: bash
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/native-tests.yml

This file was deleted.