Install the Maven-fetched FoundationDB client library on GitHub Actions runner
This commit is contained in:
parent
f8da13912d
commit
fa1cd5c263
|
@ -32,17 +32,11 @@ jobs:
|
||||||
HOME: /root
|
HOME: /root
|
||||||
- name: Install APT packages
|
- name: Install APT packages
|
||||||
# ca-certificates: required for AWS CRT client
|
# ca-certificates: required for AWS CRT client
|
||||||
run: apt update && apt install -y ca-certificates curl
|
run: apt update && apt install -y ca-certificates
|
||||||
- name: Download and install FoundationDB client
|
- name: Download and install FoundationDB client library
|
||||||
env:
|
|
||||||
# Note that even-numbered patch versions have AVX instructions disabled; not all GitHub Actions runners have
|
|
||||||
# AVX-capable processors, and we should take care to use non-AVX FoundationDB versions.
|
|
||||||
FOUNDATIONDB_VERSION: 7.3.62
|
|
||||||
FOUNDATIONDB_SHA256: 5cedd29f9dd31e6ad259bd2bd14b61293372bcb8c0c2d8dc4cf4689203790547
|
|
||||||
run: |
|
run: |
|
||||||
curl -L https://github.com/apple/foundationdb/releases/download/${FOUNDATIONDB_VERSION}/foundationdb-clients_${FOUNDATIONDB_VERSION}-1_amd64.deb -O && \
|
./mvnw -e -B -Pexclude-spam-filter clean prepare-package -DskipTests=true
|
||||||
echo "${FOUNDATIONDB_SHA256} foundationdb-clients_${FOUNDATIONDB_VERSION}-1_amd64.deb" | sha256sum --check --status - && \
|
cp service/target/jib-extra/usr/lib/libfdb_c.x86_64.so /usr/lib/libfdb_c.x86_64.so
|
||||||
apt install -y ./foundationdb-clients_${FOUNDATIONDB_VERSION}-1_amd64.deb && \
|
ldconfig
|
||||||
rm foundationdb-clients_${FOUNDATIONDB_VERSION}-1_amd64.deb
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: ./mvnw -e -B verify -DfoundationDb.serviceContainerName=foundationdb
|
run: ./mvnw -e -B clean verify -DfoundationDb.serviceContainerName=foundationdb
|
||||||
|
|
|
@ -560,7 +560,7 @@
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<url>https://github.com/apple/foundationdb/releases/download/${foundationdb.version}/libfdb_c.x86_64.so</url>
|
<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>
|
<outputDirectory>${project.build.directory}/jib-extra/usr/lib</outputDirectory>
|
||||||
<sha256>${foundationdb.client-library-sha256}</sha256>
|
<sha256>${foundationdb.client-library-sha256}</sha256>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
Loading…
Reference in New Issue