Skip to content

Commit 2afcc6f

Browse files
authored
Create nightly-1.0-builds.yml
1 parent bb2dd2e commit 2afcc6f

File tree

1 file changed

+142
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)