Skip to content

Commit

Permalink
Create JAR distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 24, 2023
1 parent 53d437f commit 4aa0596
Show file tree
Hide file tree
Showing 37 changed files with 91 additions and 480 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,32 @@ on:
branches: [ master ]

jobs:
package:
java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Maven Package
run: mvn -P${{ matrix.profile }} package

- name: Create distribution
run: |
mkdir staging
mkdir staging/J3
cp -r target/lib/ staging/J3/lib
cp target/j3-*.jar staging/J3/lib
cp -r data/ staging/J3/data
cp -r animations staging/J3/animations
cp package/README.md staging/J3
cp package/win/j3.bat staging/J3
- name: Upload
uses: actions/upload-artifact@v4
with:
name: J3
path: staging

native:
strategy:
matrix:
include:
Expand All @@ -21,15 +46,15 @@ jobs:
exe: j3
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Add msbuild to PATH (Windows)
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1

- name: Visual Studio shell (Windows)
if: runner.os == 'Windows'
uses: egor-tensin/vs-shell@v1
uses: egor-tensin/vs-shell@v2

- name: Install dependencies (Linux)
if: runner.os == 'Linux'
Expand All @@ -46,6 +71,9 @@ jobs:
# uses: gluonhq/gluon-build-license@v1
# with:
# gluon-license: ${{ secrets.GLUON_LICENSE }}

- name: Maven Package
run: mvn -P${{ matrix.profile }} package

- name: Gluon Build and Package
run: mvn -P${{ matrix.profile }} gluonfx:build gluonfx:package
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/dist/
/build/
*.csv
*.arff
*.arff
dependency-reduced-pom.xml
Binary file removed deploy/win/appicon.ico
Binary file not shown.
26 changes: 0 additions & 26 deletions deploy/win/launch4j.xml

This file was deleted.

30 changes: 0 additions & 30 deletions deploy/win/launch4j/LICENSE.txt

This file was deleted.

Loading

0 comments on commit 4aa0596

Please sign in to comment.