Skip to content

Commit ac7793d

Browse files
committed
Add github workflows and append UNOFFICIAL to local builds by default.
1 parent cde7df1 commit ac7793d

File tree

3 files changed

+85
-3
lines changed

3 files changed

+85
-3
lines changed

.github/workflows/maven-pr.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI with Maven
10+
11+
on:
12+
pull_request:
13+
branches: [ "master" ]
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
cache: maven
28+
- name: Set up Maven
29+
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
30+
with:
31+
maven-version: 3.9.6
32+
- name: Build with Maven
33+
run: "mvn -B package --file pom.xml -DunofficialSuffix=\"'-PR${{ PR_NUMBER }}'\""
34+
env:
35+
PR_NUMBER: ${{ github.event.number }}
36+
- name: Archive Build Artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: p2-repository
40+
path: com.wamas.ide.launching.update/target/repository/
41+
retention-days: 7

.github/workflows/maven.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI with Maven
10+
11+
on:
12+
push:
13+
branches: [ "master" ]
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
cache: maven
28+
- name: Set up Maven
29+
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
30+
with:
31+
maven-version: 3.9.6
32+
- name: Build with Maven
33+
run: mvn -B package --file pom.xml -DunofficialSuffix=
34+
- name: Archive Build Artifacts
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: p2-repository
38+
path: com.wamas.ide.launching.update/target/repository/

pom.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<!--
2626
<tycho-snapshots>https://repo.eclipse.org/content/repositories/tycho-snapshots/</tycho-snapshots>
2727
-->
28+
<unofficialSuffix>'-UNOFFICIAL'</unofficialSuffix>
2829
</properties>
2930

3031
<pluginRepositories>
@@ -53,6 +54,7 @@
5354
</pluginRepositories>
5455

5556
<build>
57+
<finalName>foobar</finalName>
5658
<pluginManagement>
5759
<plugins>
5860
<plugin>
@@ -261,12 +263,12 @@
261263
<repository>
262264
<id>eclipse</id>
263265
<layout>p2</layout>
264-
<url>http://download.eclipse.org/releases/2024-12</url>
266+
<url>http://download.eclipse.org/releases/2024-06</url>
265267
</repository>
266268
<repository>
267269
<id>cbi-targetplatform-dsl-mirror</id>
268270
<layout>p2</layout>
269-
<url>https://download.eclipse.org/cbi/updates/tpd/release/3.0.0</url>
271+
<url>https://download.eclipse.org/cbi/updates/tpd/release/</url>
270272
</repository>
271273
</repositories>
272274
<dependencies>
@@ -285,7 +287,7 @@
285287
<applicationArg>target-platforms/default.tpd</applicationArg>
286288
</applicationArgs>
287289
</configuration>
288-
</plugin>
290+
</plugin>
289291
</plugins>
290292
</build>
291293

@@ -327,6 +329,7 @@
327329
<timestampProvider>jgit</timestampProvider>
328330
<jgit.ignore>pom.xml .gitignore .launchers/**</jgit.ignore>
329331
<jgit.dirtyWorkingTree>warning</jgit.dirtyWorkingTree>
332+
<format>yyyyMMddHHmm${unofficialSuffix}</format>
330333
</configuration>
331334
</plugin>
332335
</plugins>

0 commit comments

Comments
 (0)