Skip to content

Commit 497bc19

Browse files
committed
Merge branch 'master' into fix-liberica-macos-integration
# Conflicts: # .github/workflows/tests.yml # bin/functions
2 parents 8b92459 + 1b2b1f3 commit 497bc19

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636
run: |
3737
. asdf/asdf.sh
3838
asdf plugin-test java "$GITHUB_WORKSPACE" --asdf-plugin-gitref "$GITHUB_SHA" --asdf-tool-version adoptopenjdk-8.0.252+9.1.openj9-0.20.0 java -version
39+
- name: macOS Check java_home integration
40+
if: matrix.os == 'macOS-latest'
41+
env:
42+
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: |
44+
export ASDF_CONFIG_FILE=${HOME}"/.asdfrc"
45+
echo "java_macos_integration_enable = yes" > "${ASDF_CONFIG_FILE}"
46+
. asdf/asdf.sh
47+
asdf plugin-test java "$GITHUB_WORKSPACE" --asdf-plugin-gitref "$GITHUB_SHA" --asdf-tool-version zulu-8.52.0.23 /usr/libexec/java_home -V 2>&1 | grep "Zulu 8.52.0.23"
3948
- name: macOS Check java_home integration Liberica
4049
if: matrix.os == 'macOS-latest'
4150
env:

.github/workflows/update-data.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- cron: '30 */8 * * *'
66
jobs:
77
update:
8+
if: github.repository == 'halcyon/asdf-java'
89
runs-on: 'ubuntu-latest'
910
steps:
1011
- uses: actions/checkout@v2

bin/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function install {
145145
mv ./* "${ASDF_INSTALL_PATH}"
146146
if [[ "$(get_asdf_config_value "java_macos_integration_enable")" = "yes" ]]; then
147147
local macOS_integration_path
148-
macOS_integration_path="$(dirname "$(dirname "$(dirname "$(absolute_dir_path "${ASDF_INSTALL_PATH}/release")")")")"
148+
macOS_integration_path="$(dirname "$(dirname "$(dirname "$(absolute_dir_path "${ASDF_INSTALL_PATH}/bin/..")")")")"
149149
java_macos_integration_install "$macOS_integration_path"
150150
fi
151151
;;

0 commit comments

Comments
 (0)