Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimized matrix ci #1355

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
145 changes: 0 additions & 145 deletions .github/workflows/nightly-1.0-builds.yml

This file was deleted.

25 changes: 17 additions & 8 deletions .github/workflows/nightly-builds.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: Nightly Builds

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
pull_request:
branches: ['**']

permissions: {}

jobs:
pekko-cluster-metrics-sigar:
name: Pekko Cluster Metrics Test with Sigar
name: Pekko Cluster Metrics Test with Sigar and Pekko ${{ matrix.pekkoVersion }}
runs-on: ubuntu-20.04
if: github.repository == 'apache/pekko'
strategy:
fail-fast: false
matrix:
pekkoVersion: [ "main", "1.0.x" ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ matrix.pekkoVersion }}

- name: Setup Java 11
uses: actions/setup-java@v4
Expand Down Expand Up @@ -61,7 +65,7 @@ jobs:
# skip_publishing: true

pekko-classic-remoting-tests:
name: Pekko Classic Remoting Tests
name: Pekko Classic Remoting Tests with Pekko ${{ matrix.pekkoVersion }}
runs-on: ubuntu-20.04
if: github.repository == 'apache/pekko'
strategy:
Expand All @@ -71,13 +75,15 @@ jobs:
- cluster/test distributed-data/test cluster-tools/test cluster-metrics/test
- cluster-sharding/test
- cluster-typed/test cluster-sharding-typed/test
pekkoVersion: [ "main", "1.0.x" ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
fetch-tags: true
ref: ${{ matrix.pekkoVersion }}

- name: Setup Java 11
uses: actions/setup-java@v4
Expand Down Expand Up @@ -107,7 +113,7 @@ jobs:
clean ${{ matrix.command }}

jdk-nightly-build:
name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }}
name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }} / Pekko ${{ matrix.pekkoVersion }}
runs-on: ubuntu-20.04
if: github.repository == 'apache/pekko'
strategy:
Expand All @@ -118,6 +124,7 @@ jobs:
# full version from it.
scalaVersion: ["2.12.x", "2.13.x", "3.3.x"]
javaVersion: [8, 11, 17, 21]
pekkoVersion: [ "main", "1.0.x" ]
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
Expand All @@ -126,6 +133,7 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ matrix.pekkoVersion }}

- name: Setup Java ${{ matrix.javaVersion }}
uses: actions/setup-java@v4
Expand All @@ -140,6 +148,7 @@ jobs:
run: cp .jvmopts-ci .jvmopts

- name: Check if the dependency task in the built correctly
if: ${{ matrix.pekkoVersion != '1.0.x' }}
run: sbt dependWalkerCheck

- name: Compile and Test
Expand Down Expand Up @@ -191,15 +200,15 @@ jobs:
"++ ${{ matrix.scalaVersion }} ;publishLocal;publishM2"

- name: Install scala-cli
if: ${{ matrix.javaVersion == 11 }}
if: ${{ matrix.javaVersion == 11 && matrix.pekkoVersion != '1.0.x'}}
run: |-
curl -sS "https://virtuslab.github.io/scala-cli-packages/KEY.gpg" | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/scala-cli.gpg 2>/dev/null
sudo curl -s --compressed -o /etc/apt/sources.list.d/scala_cli_packages.list "https://virtuslab.github.io/scala-cli-packages/debian/scala_cli_packages.list"
sudo apt update
sudo apt install scala-cli

- name: Use Scala-CLI to verify jdk 9 classes
if: ${{ matrix.javaVersion == 11 }}
if: ${{ matrix.javaVersion == 11 && matrix.pekkoVersion != '1.0.x'}}
run: |-
chmod +x .github/workflows/verify-jdk9-classes.sh
.github/workflows/verify-jdk9-classes.sh
70 changes: 0 additions & 70 deletions .github/workflows/publish-1.0-nightly.yml

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,21 @@
name: Publish nightly snapshots and documentation

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
pull_request:
branches: ['**']

permissions:
contents: read

jobs:
publish-nightly:
name: Publish nightly
name: Publish nightly on ${{ matrix.pekkoVersion }}
runs-on: ubuntu-20.04
if: github.repository == 'apache/pekko'
strategy:
fail-fast: false
matrix:
pekkoVersion: [ "main", "1.0.x" ]
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
Expand All @@ -40,6 +43,7 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ matrix.pekkoVersion }}

- name: Setup Java 11
uses: actions/setup-java@v4
Expand Down
Loading