Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/build_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#
# Copyright (c) 2018-2023 TNO and Contributors to the GitHub community
#
# This program and the accompanying materials are made available
# under the terms of the MIT License which is available at
# https://opensource.org/licenses/MIT
#
# SPDX-License-Identifier: MIT
#

# This workflow will build PPS with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Build and Test PPS (Nightly)

on:
push:
branches: [ "develop" ]

jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: --add-opens java.base/java.lang=ALL-UNNAMED

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.18.0
with:
java-version: 21
java-distribution: temurin
- name: Build and Test with Maven
run: mvn verify --batch-mode --update-snapshots --fail-at-end --file pom.xml -Dpps.version.qualifier=$(./versionQualifier.sh)
- name: Attach Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1
- name: Attach Website
uses: actions/upload-artifact@v7
with:
name: PPS-website
path: releng/nl.esi.pps.website/target/website
retention-days: 5
- name: Attach Update-Site
uses: actions/upload-artifact@v7
with:
name: PPS-update-site
path: products/nl.esi.pps.product/target/repository
retention-days: 5

# Deploy P2 Repository to GitHub Pages for nightly builds
- name: Deploy P2 Repository (Nightly)
if: success()
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./products/nl.esi.pps.product/target/repository
destination_dir: update-site/nightly
keep_files: false
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Build and Test PPS
name: Build and Test PPS (Pull Request)

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "develop" ]

jobs:
build:

runs-on: ubuntu-latest
env:
MAVEN_OPTS: --add-opens java.base/java.lang=ALL-UNNAMED

steps:
- name: Checkout
Expand All @@ -43,8 +42,14 @@ jobs:
if: success() || failure()
uses: scacap/action-surefire-report@v1
- name: Attach Website
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: PPS-website
path: releng/nl.esi.pps.website/target/website
retention-days: 5
- name: Attach Update-Site
uses: actions/upload-artifact@v7
with:
name: PPS-update-site
path: products/nl.esi.pps.product/target/repository
retention-days: 5
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Build and Test PPS
name: Build and Test PPS (Release)

on:
push:
tags:
- "v*"
- "v*.*.*"

jobs:
build:

runs-on: ubuntu-latest
env:
MAVEN_OPTS: --add-opens java.base/java.lang=ALL-UNNAMED

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -47,4 +47,15 @@ jobs:
with:
files: |
products/nl.esi.pps.product/target/products/pps-*.zip
releng/nl.esi.pps.website/target/pps-*.zip
products/nl.esi.pps.product/target/pps-*.zip
releng/nl.esi.pps.website/target/pps-*.zip

# Deploy P2 Repository to GitHub Pages for nightly builds
- name: Deploy P2 Repository (Release)
if: success()
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./products/nl.esi.pps.product/target/repository
destination_dir: update-site/${{ github.ref_name }}
keep_files: true
4 changes: 2 additions & 2 deletions releng/nl.esi.pps.target/nl.esi.pps.target.target
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="Generated from TNO - PPS" sequenceNumber="14">
<target name="Generated from TNO - PPS">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="bcpg" version="1.78.1"/>
Expand Down Expand Up @@ -164,7 +164,7 @@
<repository location="https://artifacts.itemis.cloud/repository/p2/xtext-updates/releases/2.1.1/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.justj.openjdk.hotspot.jre.full.feature.group" version="21.0.10.v20260205-0638"/>
<unit id="org.eclipse.justj.openjdk.hotspot.jre.full.feature.group" version="21.0.11.v20260515-1531"/>
<repository location="https://download.eclipse.org/justj/jres/21/updates/release/latest/"/>
</location>
</locations>
Expand Down
25 changes: 0 additions & 25 deletions releng/nl.esi.pps.website/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@
<classifier>website</classifier>
<type>zip</type>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>nl.esi.pps.product</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -127,24 +120,6 @@
<outputDirectory>${project.build.directory}/website/developerguide</outputDirectory>
</configuration>
</execution>
<execution>
<id>unpack-update-site</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>nl.esi.pps.product</artifactId>
<version>${project.version}</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/website/update-site/${pps.version.enduser}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

Expand Down
Loading