A custom Github action that downloads, extracts and caches a NetBeans ZIP distribution for building Ant-based NetBeans modules.
Required The version of the NetBeans distribution to download (e.g. '18', '19').
No outputs.
steps:
- uses: actions/checkout@v4
name: Checkout project
- uses: actions/setup-java@v4
name: Set up JDK 11
with:
java-version: '11'
distribution: 'temurin'
# Setup netbeans distribution directory on github workspace.
- uses: cjmach/setup-netbeans-action@v2.1
name: Setup NetBeans distribution
with:
version: '18'
# Run the ant command, with the required NetBeans properties set.
- name: Run the Ant build target
run: >-
ant -noinput -buildfile build.xml
-Dnbplatform.default.netbeans.dest.dir=${{ github.workspace }}/netbeans
-Dnbplatform.default.harness.dir=${{ github.workspace }}/netbeans/harness
build
The term "default" in the NetBeans properties on the ant command line
represents the name of the NetBeans platform and must match the value of
the property nbplatform.active
set in the file nbproject/platform.properties
of your module (suite).