Skip to content

Commit

Permalink
Fix InProcessDynamoDbTests for Apple Silicon
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 294c578de959770de4a3b1de8d99c5b122b85984
  • Loading branch information
tyiu authored and svc-squareup-copybara committed Aug 8, 2024
1 parent 4954777 commit ec5fdd7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions misk-aws-dynamodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ dependencies {

testImplementation(libs.assertj)
testImplementation(libs.junitApi)

if (org.apache.tools.ant.taskdefs.condition.Os.isArch("aarch64")) {
// Without this, we can't compile on Apple Silicon currently.
// This is likely not necessary to have long term,
// so we should remove it when things get fixed upstream.
testImplementation("io.github.ganadist.sqlite4java:libsqlite4java-osx-aarch64:1.0.392")
}
}

mavenPublishing {
Expand Down
7 changes: 7 additions & 0 deletions misk-aws2-dynamodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ dependencies {
strictly("4.9.3")
}
}

if (org.apache.tools.ant.taskdefs.condition.Os.isArch("aarch64")) {
// Without this, we can't compile on Apple Silicon currently.
// This is likely not necessary to have long term,
// so we should remove it when things get fixed upstream.
testImplementation("io.github.ganadist.sqlite4java:libsqlite4java-osx-aarch64:1.0.392")
}
}

mavenPublishing {
Expand Down
5 changes: 3 additions & 2 deletions misk-clustering-dynamodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ dependencies {
testImplementation(testFixtures(project(":misk-aws2-dynamodb")))

if (org.apache.tools.ant.taskdefs.condition.Os.isArch("aarch64")) {
// Without this, we can't compile on Apple Silicon currently. This is likely not necessary to
// have longterm, so we should remove it when platform fixes things across Square.
// Without this, we can't compile on Apple Silicon currently.
// This is likely not necessary to have long term,
// so we should remove it when things get fixed upstream.
testImplementation("io.github.ganadist.sqlite4java:libsqlite4java-osx-aarch64:1.0.392")
}

Expand Down

0 comments on commit ec5fdd7

Please sign in to comment.