Skip to content

Commit

Permalink
attempt snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-twiner committed Apr 8, 2024
1 parent 7fa07a2 commit 1adca30
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Full build setup off main, with ~docsOnly commit filter to run just mvn_site then docs.
name: Default CI

on:
push:
branches: [ "main", "temp/*" ]
pull_request:
branches: [ "main", "temp/*" ]

env:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
MAVEN_CLI_TESTSHADES_OPTS: "-f testShades/pom.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
# -Dmaven.repo.local=.m2/repository not needed on github, seems ~/.m2 is supported / expected
MAVEN_OPTS: "-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"

jobs:

testBuilds_2_12_18_and_2_13_12:
uses: sparkutils/building/.github/workflows/run_build.yml@main
with:
testString: test
theMatrix: |
{
"profile": ["Spark351", "Spark342", "Spark334"],
"scala": ["scala_2.12","scala_2.13"]
}
secrets: inherit

publish_2_12_18_and_2_13_12:
needs: [testBuilds_2_12_18_and_2_13_12]
uses: sparkutils/building/.github/workflows/publish_build.yml@main
with:
theMatrix: |
{
"profile": ["Spark351", "Spark342", "Spark334"],
"scala": ["scala_2.12","scala_2.13"]
}
secrets: inherit
24 changes: 24 additions & 0 deletions .github/workflows/publishOnly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Only does a publish step, no tests are run
name: Publishes Only

on:
push:
branches: [ "publishOnly" ]

env:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
MAVEN_CLI_TESTSHADES_OPTS: "-f testShades/pom.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
# -Dmaven.repo.local=.m2/repository not needed on github, seems ~/.m2 is supported / expected
MAVEN_OPTS: "-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"

jobs:

publish_2_12_18_and_2_13_12:
uses: sparkutils/building/.github/workflows/publish_build.yml@main
with:
theMatrix: |
{
"profile": ["Spark351", "Spark342", "Spark334"],
"scala": ["scala_2.12","scala_2.13"]
}
secrets: inherit
24 changes: 22 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
</scm>
<profiles>
<profile>
<id>Scala_2_12</id>
<id>Scala_2.12</id>
<properties>
<scalaVersion>2.12.18</scalaVersion>
<scalaCompatVersion>2.12</scalaCompatVersion>
</properties>
</profile>
<profile>
<id>Scala_2_13</id>
<id>Scala_2.13</id>
<properties>
<scalaVersion>2.13.12</scalaVersion>
<scalaCompatVersion>2.13</scalaCompatVersion>
Expand All @@ -51,6 +51,26 @@
<jacksonVersion>2.15.2</jacksonVersion>
</properties>
</profile>
<profile>
<id>Spark342</id>
<properties>
<sparkVersion>3.4.2</sparkVersion>
<sparkCompatVersion>3.3</sparkCompatVersion>
<testCompat>spark-3.3+</testCompat>
<shimRuntime>3.4.1.oss</shimRuntime>
<jacksonVersion>2.14.2</jacksonVersion>
</properties>
</profile>
<profile>
<id>Spark334</id>
<properties>
<sparkVersion>3.3.4</sparkVersion>
<sparkCompatVersion>3.3</sparkCompatVersion>
<testCompat>spark-3.3+</testCompat>
<shimRuntime>3.3.2.oss</shimRuntime>
<jacksonVersion>2.13.5</jacksonVersion>
</properties>
</profile>

</profiles>

Expand Down

0 comments on commit 1adca30

Please sign in to comment.