apple silcon build of the menu native library. #36
This file contains hidden or 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
| 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 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| 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 |