From 366edbaad9e2c3288392b3fd449d3743d07e1b2c Mon Sep 17 00:00:00 2001 From: albilu <35330562+albilu@users.noreply.github.com> Date: Sun, 10 Sep 2023 11:27:01 +0200 Subject: [PATCH] Add builds checker action --- .github/workflows/builds.yml | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/builds.yml diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml new file mode 100644 index 0000000..af7b68e --- /dev/null +++ b/.github/workflows/builds.yml @@ -0,0 +1,67 @@ + + +name: "Builds" + +on: + push: + branches: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: write-all + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Build with RELEASE130 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE130 -Dnext.version=RELEASE130 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build with RELEASE140 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE140 -Dnext.version=RELEASE140 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build with RELEASE150 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE150 -Dnext.version=RELEASE150 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build with RELEASE160 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE160 -Dnext.version=RELEASE160 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build with RELEASE170 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE170 -Dnext.version=RELEASE170 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build with RELEASE180 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE180 -Dnext.version=RELEASE180 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build with RELEASE190 + run: | + mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE190 -Dnext.version=RELEASE190 + env: + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file