豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 8365bb7

Browse files
authored
fix: Fix action failing on macos runners, add shebang (#10)
* fix: Java version error; Add missing #! line * Switch to the zulu distribution
1 parent a61dd64 commit 8365bb7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
os:
2020
- ubuntu-latest
2121
- windows-latest
22-
# - macos-latest
22+
- macos-latest
2323
jython_version:
2424
- "2.7.3"
2525
- "2.7.2"

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ runs:
7676
f.write('\n'.join(lines))
7777
7878
- name: Set up JDK 8
79-
uses: actions/setup-java@v3
79+
uses: actions/setup-java@v4
8080
with:
8181
java-version: '8'
82-
distribution: 'temurin'
82+
distribution: 'zulu'
8383

8484
- name: Download Jython Installer
8585
id: download_installer
@@ -152,6 +152,7 @@ runs:
152152
;;
153153
esac
154154
155+
echo "#!/bin/bash" >> ~/.local/bin/jython;
155156
echo "$jython_cmd" >> ~/.local/bin/jython;
156157
chmod +x ~/.local/bin/jython;
157158

0 commit comments

Comments
 (0)