Skip to content

Reorganize windows artifact dir #12

Reorganize windows artifact dir

Reorganize windows artifact dir #12

Workflow file for this run

name: macOS nightly
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@v4
with:
name: tcmenudesigner_${{ env.version }}_macos-${{ github.sha }}
path: |
tcMenuGenerator/target/tcMenuDesigner-${{ env.version }}.dmg