| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| name: NetBeans Jackpot 3.0 |
| |
| on: |
| push: |
| pull_request: |
| # unlocked event is used as super secret restart button |
| types: [opened, synchronize, unlocked] |
| |
| # cancel other PR workflow run in the same head-base group if it exists (e.g. during PR syncs) |
| # if this is not a PR run (no github.head_ref and github.base_ref defined), use an UID as group |
| concurrency: |
| group: ${{ github.head_ref || github.run_id }}-${{ github.base_ref }} |
| cancel-in-progress: true |
| |
| jobs: |
| |
| base-build: |
| name: Build Jackpot 3.0 |
| runs-on: ubuntu-latest |
| timeout-minutes: 60 |
| steps: |
| |
| - name: Checkout ${{ github.ref }} ( ${{ github.sha }} ) |
| uses: actions/checkout@v7 |
| with: |
| persist-credentials: false |
| submodules: false |
| |
| - name: Set up Ubuntu dependencies |
| run: | |
| sudo apt update |
| sudo apt install openjdk-17-jdk openjdk-21-jdk openjdk-25-jdk |
| |
| - name: Set up NetBeans |
| run: | |
| wget -q 'https://archive.apache.org/dist/netbeans/netbeans/28/netbeans-28-bin.zip' -O /tmp/netbeans-28-bin.zip |
| (cd $HOME; unzip /tmp/netbeans-28-bin.zip) |
| |
| - name: Run RAT |
| run: | |
| echo $PWD |
| ls -la $PWD |
| (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness rat) |
| |
| - name: Do build Jackpot |
| run: | |
| export JDK17=/usr/lib/jvm/java-17-openjdk-amd64 |
| export JDK21=/usr/lib/jvm/java-21-openjdk-amd64 |
| export JDK25=$JAVA_HOME |
| export JAVA_HOME=$JDK17 |
| export PATH=$JAVA_HOME/bin:$PATH |
| (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness -DNETBEANS_PLATFORM=$HOME/netbeans -DJDK17=$JDK17 -DJDK21=$JDK21 -DJDK25=$JDK25 build-and-test) |