Skip to content

Commit bfa37ff

Browse files
authored
add 1.1 builds (#1630)
1 parent 8473abe commit bfa37ff

File tree

3 files changed

+236
-0
lines changed

3 files changed

+236
-0
lines changed
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# license agreements; and to You under the Apache License, version 2.0:
3+
#
4+
# https://www.apache.org/licenses/LICENSE-2.0
5+
#
6+
# This file is part of the Apache Pekko project, which was derived from Akka.
7+
#
8+
9+
name: Nightly Builds (1.1)
10+
11+
on:
12+
schedule:
13+
- cron: "0 0 * * *"
14+
workflow_dispatch:
15+
16+
permissions: {}
17+
18+
jobs:
19+
pekko-cluster-metrics-sigar:
20+
name: Pekko Cluster Metrics Test with Sigar
21+
runs-on: ubuntu-22.04
22+
if: github.repository == 'apache/pekko'
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
fetch-tags: true
29+
ref: 1.1.x
30+
31+
- name: Setup Java 11
32+
uses: actions/setup-java@v4
33+
with:
34+
distribution: temurin
35+
java-version: 11
36+
37+
- name: Install sbt
38+
uses: sbt/setup-sbt@v1
39+
40+
- name: Cache Coursier cache
41+
uses: coursier/cache-action@v6
42+
43+
- name: Enable jvm-opts
44+
run: cp .jvmopts-ci .jvmopts
45+
46+
- name: sbt cluster-metrics/test
47+
env:
48+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
49+
run: |-
50+
sbt \
51+
-Djava.security.egd=file:/dev/./urandom \
52+
-Dpekko.test.sigar=true \
53+
-Dpekko.cluster.assert=on \
54+
-Dpekko.test.timefactor=2 \
55+
-Dpekko.actor.testkit.typed.timefactor=2 \
56+
-Dpekko.test.tags.exclude=gh-exclude,timing \
57+
-Dpekko.log.timestamps=true \
58+
-Dmultinode.XX:MetaspaceSize=128M \
59+
-Dmultinode.Xms256M \
60+
-Dmultinode.Xmx256M \
61+
-Dmultinode.Xlog:gc \
62+
-Dmultinode.XX:+AlwaysActAsServerClassMachine \
63+
clean cluster-metrics/test
64+
65+
pekko-classic-remoting-tests:
66+
name: Pekko Classic Remoting Tests
67+
runs-on: ubuntu-22.04
68+
if: github.repository == 'apache/pekko'
69+
strategy:
70+
fail-fast: false
71+
matrix:
72+
command:
73+
- cluster/test distributed-data/test cluster-tools/test cluster-metrics/test
74+
- cluster-sharding/test
75+
- cluster-typed/test cluster-sharding-typed/test
76+
steps:
77+
- name: Checkout
78+
uses: actions/checkout@v4
79+
with:
80+
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
81+
fetch-depth: 0
82+
fetch-tags: true
83+
ref: 1.0.x
84+
85+
- name: Setup Java 11
86+
uses: actions/setup-java@v4
87+
with:
88+
distribution: temurin
89+
java-version: 11
90+
91+
- name: Install sbt
92+
uses: sbt/setup-sbt@v1
93+
94+
- name: Cache Coursier cache
95+
uses: coursier/cache-action@v6
96+
97+
- name: Enable jvm-opts
98+
run: cp .jvmopts-ci .jvmopts
99+
100+
- name: sbt ${{ matrix.command }}
101+
env:
102+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
103+
# note that this is not running any multi-jvm tests because multi-in-test=false
104+
run: |-
105+
sbt \
106+
-Djava.security.egd=file:/dev/./urandom \
107+
-Dpekko.remote.artery.enabled=off \
108+
-Dpekko.test.timefactor=2 \
109+
-Dpekko.actor.testkit.typed.timefactor=2 \
110+
-Dpekko.test.tags.exclude=gh-exclude,timing \
111+
-Dpekko.test.multi-in-test=false \
112+
-Dpekko.cluster.assert=on \
113+
clean ${{ matrix.command }}
114+
115+
jdk-nightly-build:
116+
name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }}
117+
runs-on: ubuntu-22.04
118+
if: github.repository == 'apache/pekko'
119+
strategy:
120+
fail-fast: false
121+
matrix:
122+
# No need to specify the full Scala version. Only the Scala
123+
# binary version is required and Pekko build will set the right
124+
# full version from it.
125+
scalaVersion: ["2.12.x", "2.13.x", "3.3.x"]
126+
javaVersion: [8, 11, 17, 21]
127+
steps:
128+
- name: Checkout
129+
uses: actions/checkout@v4
130+
with:
131+
fetch-depth: 0
132+
fetch-tags: true
133+
ref: 1.0.x
134+
135+
- name: Setup Java ${{ matrix.javaVersion }}
136+
uses: actions/setup-java@v4
137+
with:
138+
distribution: temurin
139+
java-version: ${{ matrix.javaVersion }}
140+
141+
- name: Install sbt
142+
uses: sbt/setup-sbt@v1
143+
144+
- name: Cache Coursier cache
145+
uses: coursier/cache-action@v6
146+
147+
- name: Enable jvm-opts
148+
run: cp .jvmopts-ci .jvmopts
149+
150+
- name: Compile and Test
151+
env:
152+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
153+
# note that this is not running any multi-jvm tests because multi-in-test=false
154+
run: |-
155+
sbt \
156+
-Dpekko.cluster.assert=on \
157+
-Dpekko.log.timestamps=true \
158+
-Dpekko.test.timefactor=2 \
159+
-Dpekko.actor.testkit.typed.timefactor=2 \
160+
-Dpekko.test.tags.exclude=gh-exclude,timing \
161+
-Dpekko.test.multi-in-test=false \
162+
clean "++ ${{ matrix.scalaVersion }} test" checkTestsHaveRun

.github/workflows/publish-1.1-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939
fetch-tags: true
40+
ref: 1.1.x
4041

4142
- name: Setup Java 11
4243
uses: actions/setup-java@v4
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Based on Apache Arrow's java-nightly workflow
19+
# https://github.com/apache/arrow/blob/master/.github/workflows/java_nightly.yml
20+
name: Publish nightly 1.1 snapshots
21+
22+
on:
23+
workflow_dispatch:
24+
schedule:
25+
- cron: "0 0 * * *"
26+
27+
permissions:
28+
contents: read
29+
30+
jobs:
31+
publish-nightly:
32+
name: Publish 1.1 nightly
33+
runs-on: ubuntu-22.04
34+
if: github.repository == 'apache/pekko'
35+
env:
36+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
42+
fetch-tags: true
43+
ref: 1.1.x
44+
45+
- name: Setup Java 11
46+
uses: actions/setup-java@v4
47+
with:
48+
distribution: temurin
49+
java-version: 11
50+
51+
- name: Install sbt
52+
uses: sbt/setup-sbt@v1
53+
54+
- name: Cache Coursier cache
55+
uses: coursier/cache-action@v6
56+
57+
- name: Install Graphviz
58+
run: |-
59+
sudo apt-get install graphviz
60+
61+
- name: Report MIMA incompatibility issues
62+
run: |-
63+
sbt +mimaReportBinaryIssues
64+
65+
- name: Publish to Apache Maven repo
66+
env:
67+
NEXUS_USER: ${{ secrets.NEXUS_USER }}
68+
NEXUS_PW: ${{ secrets.NEXUS_PW }}
69+
run: sbt +publish
70+
71+
- name: Build Documentation
72+
run: |-
73+
sbt -Dpekko.genjavadoc.enabled=true -Dpekko.genlicensereport.enabled=true docs/paradox unidoc

0 commit comments

Comments
 (0)