Fetch the FoundationDB client library as a pre-package step rather than including it in version control

This commit is contained in:
Jon Chambers 2025-06-26 10:28:51 -04:00
parent a3b3bf86ba
commit f8da13912d
4 changed files with 26 additions and 7 deletions

1
.gitattributes vendored
View File

@ -1 +0,0 @@
*.so filter=lfs diff=lfs merge=lfs -text

View File

@ -50,6 +50,7 @@
with even-numbered patch versions). Also when updating FoundationDB, make sure to update the version of FoundationDB with even-numbered patch versions). Also when updating FoundationDB, make sure to update the version of FoundationDB
used by GitHub Actions. --> used by GitHub Actions. -->
<foundationdb.version>7.3.62</foundationdb.version> <foundationdb.version>7.3.62</foundationdb.version>
<foundationdb.client-library-sha256>bfed237b787fae3cde1222676e6bfbb0d218fc27bf9e903397a7a7aa96fb2d33</foundationdb.client-library-sha256>
<google-cloud-libraries.version>26.57.0</google-cloud-libraries.version> <google-cloud-libraries.version>26.57.0</google-cloud-libraries.version>
<grpc.version>1.70.0</grpc.version> <!-- should be kept in sync with the value from Google libraries-bom --> <grpc.version>1.70.0</grpc.version> <!-- should be kept in sync with the value from Google libraries-bom -->
<gson.version>2.12.1</gson.version> <gson.version>2.12.1</gson.version>

View File

@ -543,6 +543,28 @@
<id>exclude-spam-filter</id> <id>exclude-spam-filter</id>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>io.github.download-maven-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<id>install-foundationdb-client-library</id>
<phase>prepare-package</phase>
<goals>
<goal>wget</goal>
</goals>
</execution>
</executions>
<configuration>
<url>https://github.com/apple/foundationdb/releases/download/${foundationdb.version}/libfdb_c.x86_64.so</url>
<outputDirectory>${project.build.directory}/jib-extra/usr/local</outputDirectory>
<sha256>${foundationdb.client-library-sha256}</sha256>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
@ -659,14 +681,14 @@
</container> </container>
<extraDirectories> <extraDirectories>
<paths> <paths>
<path>
<from>${project.basedir}/src/main/jib</from>
</path>
<path> <path>
<from>${project.basedir}/config</from> <from>${project.basedir}/config</from>
<includes>*.yml</includes> <includes>*.yml</includes>
<into>/usr/share/signal/</into> <into>/usr/share/signal/</into>
</path> </path>
<path>
<from>${project.build.directory}/jib-extra</from>
</path>
</paths> </paths>
</extraDirectories> </extraDirectories>
</configuration> </configuration>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bfed237b787fae3cde1222676e6bfbb0d218fc27bf9e903397a7a7aa96fb2d33
size 23671800