Skip to content

Commit

Permalink
Add in test windows github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Mar 27, 2024
1 parent 168620e commit ece423a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
name: jars
path: app/build/libs/
- name: Package jar as exe
run: 'jpackage --main-jar "app-${{ env.APP_VERSION }}-all.jar" "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-windows.cfg"'
run: 'jpackage --main-jar app-$env:APP_VERSION-all.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-windows.cfg"'
- name: Upload installer
uses: actions/upload-artifact@v4
with:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test windows commands

on:
push:
branches:
- test-windows

jobs:
windows:
runs-on: [windows-latest]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set version
run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV
- name: Echo version
run: echo $env:APP_VERSION
- name: Echo version with other text
run: echo app-$env:APP_VERSION-all.jar

0 comments on commit ece423a

Please sign in to comment.