Skip to content

Commit bdbeb39

Browse files
committed
remove pwsh from jpackage builds [ci skip]
* linux self-hosted runner does not have it
1 parent e118470 commit bdbeb39

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/build-binary.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
binary-dir-suffix: ""
7676
runs-on: ${{ matrix.os }}
7777
steps:
78-
- name: Preparations fpr windows runner
78+
- name: Preparations for windows runner
7979
if: startsWith(matrix.os, 'windows')
8080
run: echo "JPACKAGE_OS_OPTS=--win-console" >> "$GITHUB_ENV"
8181
- uses: actions/checkout@v4
@@ -92,22 +92,20 @@ jobs:
9292
cp LICENSE.txt target
9393
cp target/cryptomator-*.jar target/mods
9494
- name: Run jlink
95-
shell: pwsh
9695
run: >
97-
& $env:JAVA_HOME\bin\jlink
96+
${JAVA_HOME}/bin/jlink
9897
--verbose
99-
--output target\runtime
100-
--module-path "${env:JAVA_HOME}\jmods"
98+
--output target/runtime
99+
--module-path "${JAVA_HOME}/jmods"
101100
--add-modules java.base,java.compiler,java.naming,java.xml `
102101
--strip-native-commands `
103102
--no-header-files `
104103
--no-man-pages `
105104
--strip-debug `
106105
--compress zip-6
107106
- name: Run jpackage
108-
shell: pwsh
109107
run: >
110-
& $env:JAVA_HOME\bin\jpackage
108+
${JAVA_HOME}/bin/jpackage
111109
--verbose
112110
--type app-image
113111
--runtime-image target/runtime
@@ -124,16 +122,15 @@ jobs:
124122
--java-options "--enable-native-access=${{ matrix.native-access-lib }}"
125123
--java-options "-Xss5m"
126124
--java-options "-Xmx256m"
127-
--java-options '-Dfile.encoding="utf-8"'
125+
--java-options "-Dfile.encoding=\"utf-8\""
128126
${JPACKAGE_OS_OPTS}
129127
- uses: actions/upload-artifact@v4
130128
with:
131129
path: ./target/cryptomator-cli${{ matrix.binary-dir-suffix }}
132130
if-no-files-found: error
133131
- name: Zip binary for release
134132
if: startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
135-
shell: pwsh
136-
run: Compress-Archive -Path .\target\cryptomator-cli${{ matrix.binary-dir-suffix }} -DestinationPath .\cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
133+
run: zip -r ./target/cryptomator-cli${{ matrix.binary-dir-suffix }} ./cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
137134
- name: Create detached GPG signature with key 615D449FE6E6A235
138135
run: |
139136
echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import

0 commit comments

Comments
 (0)