Skip to content

Commit

Permalink
Move native function to "unsafe" project
Browse files Browse the repository at this point in the history
  • Loading branch information
zeotuan committed Oct 5, 2024
1 parent c232c77 commit 8369ce5
Show file tree
Hide file tree
Showing 72 changed files with 52 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml β†’ .github/workflows/core-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: core-ci

on:
push:
Expand All @@ -17,6 +17,6 @@ jobs:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- name: Test
run: sbt -Dspark.testVersion=${{ matrix.spark }} +test
run: sbt -Dspark.testVersion=${{ matrix.spark }} +"project core" test
- name: Code Quality
run: sbt scalafmtCheckAll
run: sbt "project core" scalafmtCheckAll
22 changes: 22 additions & 0 deletions .github/workflows/unsafe-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: unsafe-ci

on:
push:
branches:
- main
pull_request:

jobs:
build:
strategy:
fail-fast: false
matrix:
spark: ["3.2.4", "3.3.4"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- name: Test
run: sbt -Dspark.testVersion=${{ matrix.spark }} +"project unsafe" test
- name: Code Quality
run: sbt "project unsafe" scalafmtCheckAll
34 changes: 27 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,42 @@ crossScalaVersions := {

scalaVersion := crossScalaVersions.value.head

libraryDependencies += "org.apache.spark" %% "spark-sql" % sparkVersion % "provided"
libraryDependencies += "org.apache.spark" %% "spark-mllib" % sparkVersion % "provided"
libraryDependencies += "com.github.mrpowers" %% "spark-fast-tests" % "1.1.0" % "test"
libraryDependencies += "com.lihaoyi" %% "utest" % "0.7.11" % "test"
libraryDependencies += "com.lihaoyi" %% "os-lib" % "0.8.0" % "test"
lazy val commonSettings = Seq(
javaOptions ++= {
Seq("-Xms512M", "-Xmx2048M", "-Duser.timezone=GMT") ++ (if (System.getProperty("java.version").startsWith("1.8.0"))
Seq("-XX:+CMSClassUnloadingEnabled")
else Seq.empty)
},
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.apache.spark" %% "spark-mllib" % sparkVersion % "provided",
"com.lihaoyi" %% "utest" % "0.7.11" % "test",
"com.lihaoyi" %% "os-lib" % "0.8.0" % "test"
),
)

lazy val core = (project in file("core"))
.settings(
commonSettings,
name := "core",
)

lazy val unsafe = (project in file("unsafe"))
.settings(
commonSettings,
name := "unsafe",
)

testFrameworks += new TestFramework("com.github.mrpowers.spark.daria.CustomFramework")

credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")

fork in Test := true

javaOptions ++= Seq("-Xms512M", "-Xmx2048M", "-XX:+CMSClassUnloadingEnabled", "-Duser.timezone=GMT")

licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))

homepage := Some(url("https://github.com/MrPowers/spark-daria"))

developers ++= List(
Developer("MrPowers", "Matthew Powers", "@MrPowers", url("https://github.com/MrPowers"))
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8369ce5

Please sign in to comment.