Code Monkey home page Code Monkey logo

hello-gluon-ci's Introduction

HelloGluon CI

This sample shows how to automatically build a Gluon Application using Github Actions.

It uses a version of HelloGluon, a Hello World application with Java 11+, JavaFX 15+, Gluon Mobile and GraalVM. For more details about Gluon Applications in general, please have a look at the Gluon docs or the other samples.

This sample focuses on the continuous integration using Github Actions on these platforms:

  • Windows
  • MacOS
  • Linux
  • iOS
  • Android
  • Embedded - AArch64 Linux

All these platform specific workflows share these common steps:

  • Checkout your code
  • Setup the build environment, specific to the platform
  • Build the application
  • Upload the application

Next to the above steps, for iOS and Android, the workflow includes steps to properly sign and upload the binary to the Play Store and App Store.

Build setup

Building using Github Actions is not very different from building locally.

On top of a default Gluon application, the following releaseConfiguration was added to the maven-gluonfx-plugin configuration:

<configuration>
    <releaseConfiguration>
        <!-- for iOS -->
        <bundleVersion>${env.GITHUB_RUN_NUMBER}</bundleVersion>
        
        <!-- for Android -->
        <versionCode>${env.GITHUB_RUN_NUMBER}</versionCode>
        <providedKeyStorePath>${env.GLUON_ANDROID_KEYSTOREPATH}</providedKeyStorePath>
        <providedKeyStorePassword>${env.GLUON_ANDROID_KEYSTORE_PASSWORD}</providedKeyStorePassword>
        <providedKeyAlias>${env.GLUON_ANDROID_KEYALIAS}</providedKeyAlias>
        <providedKeyAliasPassword>${env.GLUON_ANDROID_KEYALIAS_PASSWORD}</providedKeyAliasPassword>
    </releaseConfiguration>
</configuration>

For iOS:

  • bundleVersion is set to the GITHUB_RUN_NUMBER, so each build will have unique CFBundleVersion. See this doc for more information.

For Android:

  • versionCode is set to the GITHUB_RUN_NUMBER, so each build will have a unique android:versionCode. See this doc for more information.
  • keystore configuration are taken from env variables, that will be set by the workflow action.

Gluon license

All workflows use this action this Gluon license action:

  - name: Gluon License
    uses: gluonhq/gluon-build-license@v1
    with:
      gluon-license: ${{ secrets.GLUON_LICENSE }}

Using a Gluon license is optional and depends on your situation. Have a look at the Gluon website for more information about licences or contact us.

Platforms

Github Action workflows are specified in .github/workflows and configured to be triggered on push. Depending on your own preference and requirements, this can of course be changed. Please refer to the GitHub Actions documentation for more information.

Windows

Windows

MacOS

MacOS

Linux

Linux

iOS

iOS

Android

Android

Embedded - AArch64 Linux

AArch64 Linux

hello-gluon-ci's People

Contributors

abhinayagarwal avatar erwin1 avatar gluon-bot avatar johanvos avatar jperedadnr avatar tiainen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.