-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84a403b
commit 3d34449
Showing
5 changed files
with
190 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build Linux Binary | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build-linux-binary: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 22 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '22' | ||
distribution: 'liberica' | ||
cache: maven | ||
|
||
- name: Extract version from Maven cache | ||
id: get-version | ||
run: | | ||
version=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \ | ||
-Dexpression=project.version -q -DforceStdout --file tcMenuGenerator/pom.xml) | ||
echo "version=$version" >> $GITHUB_ENV | ||
- name: Build tcMenuGenerator binary | ||
run: | | ||
mvn -B install -DskipTests -Dgpg.skip=true --file tcMenuJavaApi/pom.xml | ||
mvn -B install -DskipTests -Dgpg.skip=true --file embedCONTROLCore/pom.xml | ||
mvn -B install -DskipTests -Dgpg.skip=true --file tcMenuGenerator/pom.xml | ||
cd tcMenuGenerator/target | ||
cp classes/img/tcMenuDesigner.ico . | ||
jpackage -n tcMenuDesigner \ | ||
-p jfx/deps \ | ||
--input jfx/app \ | ||
--icon ./classes/img/menu-icon.png \ | ||
--verbose \ | ||
--license-file ../../LICENSE \ | ||
--linux-app-category Development \ | ||
--linux-menu-group "Development;Utility;" \ | ||
--java-options "-Dprism.lcdtext=false -Djava.library.path=$APPDIR/lin" \ | ||
--app-version ${{ env.version }} \ | ||
--add-modules "jdk.crypto.cryptoki" \ | ||
-m com.thecoderscorner.tcmenu.menuEditorUI/com.thecoderscorner.menu.editorui.cli.TcMenuDesignerCmd | ||
- name: Upload DEB artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tcmenudesigner_${{ env.version }}_linux_deb-${{ github.sha }} | ||
path: | | ||
tcMenuGenerator/target/tcmenudesigner_${{ env.version }}_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build macOS Binary | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build-macos-binary: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 22 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '22' | ||
distribution: 'liberica' | ||
cache: maven | ||
|
||
- name: Extract version from Maven cache | ||
id: get-version | ||
run: | | ||
version=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \ | ||
-Dexpression=project.version -q -DforceStdout --file tcMenuGenerator/pom.xml) | ||
echo "version=$version" >> $GITHUB_ENV | ||
- name: Build tcMenuGenerator binary | ||
run: | | ||
mvn -B install -DskipTests -Dgpg.skip=true --file tcMenuJavaApi/pom.xml | ||
mvn -B install -DskipTests -Dgpg.skip=true --file embedCONTROLCore/pom.xml | ||
mvn -B install -DskipTests -Dgpg.skip=true --file tcMenuGenerator/pom.xml | ||
cd tcMenuGenerator/target | ||
jpackage -n tcMenuDesigner \ | ||
-p jfx/deps \ | ||
--input jfx/app \ | ||
--icon ./classes/img/AppIcon.icns \ | ||
--verbose \ | ||
--license-file ../../LICENSE \ | ||
--vendor TheCodersCorner \ | ||
--app-version ${{ env.version }} \ | ||
--add-modules "jdk.crypto.cryptoki" \ | ||
--java-options "-Dprism.lcdtext=false -Djava.library.path=$APPDIR/mac" \ | ||
-m com.thecoderscorner.tcmenu.menuEditorUI/com.thecoderscorner.menu.editorui.cli.TcMenuDesignerCmd | ||
- name: Upload macOS artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tcmenudesigner_${{ env.version }}_macos-${{ github.sha }} | ||
path: | | ||
tcMenuGenerator/target/tcMenuDesigner-${{ env.version }}.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Build Windows Binary | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build-windows-binary: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 22 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '22' | ||
distribution: 'liberica' | ||
cache: maven | ||
|
||
- name: Extract version from Maven cache | ||
id: get-version | ||
shell: bash | ||
run: | | ||
version=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \ | ||
-Dexpression=project.version -q -DforceStdout --file tcMenuGenerator/pom.xml) | ||
echo "version=$version" >> $GITHUB_ENV | ||
- name: Build tcMenuGenerator binaries | ||
shell: bash | ||
run: | | ||
mvn -B install -DskipTests -Dgpg.skip=true --file tcMenuJavaApi/pom.xml | ||
mvn -B install -DskipTests -Dgpg.skip=true --file embedCONTROLCore/pom.xml | ||
mvn -B install -DskipTests -Dgpg.skip=true --file tcMenuGenerator/pom.xml | ||
cd tcMenuGenerator/target | ||
cp classes/img/tcMenuDesigner.ico . | ||
jpackage --type app-image -n tcmenu \ | ||
-p jfx/deps \ | ||
--input jfx/app \ | ||
--win-console \ | ||
--resource-dir ./classes/img/ \ | ||
--icon tcMenuDesigner.ico \ | ||
--app-version ${{ env.version }} \ | ||
--verbose \ | ||
--java-options "-Dprism.lcdtext=false -Djava.library.path=$APPDIR/win" \ | ||
--add-modules "jdk.crypto.cryptoki" \ | ||
-m com.thecoderscorner.tcmenu.menuEditorUI/com.thecoderscorner.menu.editorui.cli.TcMenuDesignerCmd | ||
cp classes/img/tcMenuDesigner.ico . | ||
jpackage --type app-image -n tcMenuDesigner \ | ||
-p jfx/deps \ | ||
--input jfx/app \ | ||
--resource-dir ./classes/img/ \ | ||
--icon tcMenuDesigner.ico \ | ||
--app-version ${{ env.version }} \ | ||
--verbose \ | ||
--java-options "-Dprism.lcdtext=false -Djava.library.path=$APPDIR/win" \ | ||
--add-modules "jdk.crypto.cryptoki" \ | ||
-m com.thecoderscorner.tcmenu.menuEditorUI/com.thecoderscorner.menu.editorui.cli.TcMenuDesignerCmd | ||
- name: Upload Windows artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tcmenudesigner_${{ env.version }}_windows_exe-${{ github.sha }} | ||
path: | | ||
tcMenuGenerator/target/tcmenu | ||
tcMenuGenerator/target/tcMenuDesigner | ||
tcMenuGenerator/target/tcmenu/app/tcmenu.cfg | ||
tcMenuGenerator/target/tcMenuDesigner/app/tcMenuDesigner.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters