Skip to content

Commit 7aa4b6f

Browse files
committed
GHA
1 parent a196e12 commit 7aa4b6f

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: build-nightly
2+
on:
3+
schedule:
4+
- cron: "20 1 * * *"
5+
workflow_dispatch:
6+
7+
jobs:
8+
build-nightly:
9+
uses: ./.github/workflows/build.yml

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
3+
on: [pull_request, workflow_call, workflow_dispatch]
4+
5+
env:
6+
MAVEN_OPTS: -Xmx8192m
7+
JAVA_TOOL_OPTIONS: -Djdk.util.zip.disableZip64ExtraFieldValidation=true
8+
9+
jobs:
10+
build:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: 'true'
16+
- uses: actions/setup-java@v4
17+
with:
18+
distribution: 'zulu'
19+
java-version: '17'
20+
java-package: 'jdk+fx'
21+
cache: maven
22+
- name: Build maven-osgi-bundles
23+
working-directory: ./cs-studio
24+
run: mvn verify -f maven-osgi-bundles/pom.xml -Dcs-studio=false -Declipse=false -Dtycho.localArtifacts=ignore
25+
- name: Build cs-studio
26+
working-directory: ./cs-studio
27+
run: mvn verify -Dcs-studio=false -Declipse=false -Dtycho.localArtifacts=ignore -Dcsstudio.composite.repo=p2repo -DskipTests=true
28+
- name: Upload zip
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: cs-studio
32+
path: |
33+
cs-studio/product/repository/target/products/*.zip
34+
compression-level: 0
35+
if-no-files-found: error

0 commit comments

Comments
 (0)