-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from saalfeldlab/build/jdk21
Build/jdk21
- Loading branch information
Showing
40 changed files
with
2,872 additions
and
2,587 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,69 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: Build Installers | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
DEV_IDENTITY: BXPZTQZ35S # Your Apple Dev identity, something like BXPZTQZ35S | ||
PRIMARY_BUNDLE_ID: org.janelia.saalfeldlab.PainteraConvert # Unique to your app, often the launcher class | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [macos-14, ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set Version | ||
shell: bash | ||
run: | | ||
short_version=`git rev-parse --short HEAD` | ||
echo "VERSION=$short_version" >> $GITHUB_ENV | ||
- name: Download Wix | ||
uses: i3h/download-release-asset@v1 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
owner: wixtoolset | ||
repo: wix3 | ||
tag: wix3112rtm | ||
file: wix311-binaries.zip | ||
- name: Decompress Wix | ||
uses: DuckSoft/[email protected] | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
pathSource: wix311-binaries.zip | ||
pathTarget: ./target/wix | ||
- name: Add Wix to Path | ||
run: echo "$HOME/target/wix" >> $GITHUB_PATH | ||
if: matrix.os == 'windows-latest' | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 21 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
- name: "Build with Maven" | ||
if: matrix.os != 'macos-latest' && matrix.os != 'macos-14' | ||
run: mvn -B clean install -Pbuild-installer "-Dmatrix.os=${{ matrix.os }}" --file pom.xml | ||
- name: "Build with Maven (macOS No Signing)" | ||
env: | ||
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} | ||
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }} | ||
if: ${{ env.MACOS_CERTIFICATE == null && (matrix.os == 'macos-latest' || matrix.os == 'macos-14') }} | ||
run: mvn -B clean install -Pbuild-installer "-Dmatrix.os=${{ matrix.os }}" --file pom.xml | ||
|
||
- name: Upload Installers | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: PainteraConvert-${{ matrix.os }}-${{ env.VERSION }} | ||
path: | | ||
${{ env.DMG_PATH }} | ||
./target/installer-${{ matrix.os }}/* |
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
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,46 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: Publish Installers | ||
|
||
on: | ||
push: | ||
tags: "paintera-conversion-helper-*.*.*" | ||
workflow_dispatch: | ||
|
||
|
||
|
||
env: | ||
DEV_IDENTITY: BXPZTQZ35S # Your Apple Dev identity, something like BXPZTQZ35S | ||
PRIMARY_BUNDLE_ID: org.janelia.saalfeldlab.PainteraConvert # Unique to your app, often the launcher class | ||
|
||
jobs: | ||
build_installers: | ||
name: Build Installers | ||
uses: ./.github/workflows/build-installers.yml | ||
|
||
create_release: | ||
needs: build_installers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Set Version | ||
run: | | ||
tag_name=$(echo ${{ github.ref }} | grep -oE "[^/]+$") | ||
echo "VERSION=$tag_name" >> $GITHUB_ENV | ||
- name: Rename Artifacts | ||
run: | | ||
mv PainteraConvert-ubuntu-latest-*/*.deb PainteraConvert-${{ env.VERSION }}_x86_64.deb | ||
mv PainteraConvert-macos-latest-*/*.pkg PainteraConvert-${{ env.VERSION }}-MacOS.pkg | ||
mv PainteraConvert-macos-14-*/*.pkg PainteraConvert-${{ env.VERSION }}-MacOS-AppleSilicon.pkg | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: Paintera Convert ${{ env.VERSION }} | ||
tag_name: ${{ github.ref }} | ||
prerelease: false | ||
files: | | ||
PainteraConvert-${{ env.VERSION }}_x86_64.deb | ||
PainteraConvert-${{ env.VERSION }}-MacOS.pkg | ||
PainteraConvert-${{ env.VERSION }}-MacOS-AppleSilicon.pkg |
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
Oops, something went wrong.