diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99ff228..7d5c56d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,13 @@ jobs: - name: Verify run: ./mvnw verify + - name: Verify Linux library is packaged + run: | + mainJar="$(find thegreeklab-core/target -maxdepth 1 -name 'thegreeklab-*.jar' \ + ! -name '*-sources.jar' ! -name '*-javadoc.jar' | head -n 1)" + test -n "$mainJar" + jar tf "$mainJar" | grep -Fx "native/linux-x86_64/libpbivnorm.so" + - name: Archive JaCoCo report uses: actions/upload-artifact@v4 with: diff --git a/README.md b/README.md index 9e3ef36..e4fddee 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,9 @@ not required. Release artifacts bundle `pbivnorm` for Windows x86-64, Linux x86-64, macOS x86-64 and macOS Apple Silicon. GitHub Actions builds the Linux and macOS libraries from `src/main/fortran/pbivnorm.f` and smoke-tests each native -runtime. Other platforms can supply an external library through: +runtime. CI validates native loading and JAR packaging on Windows x86-64, +Linux x86-64, macOS x86-64 and macOS Apple Silicon. Other platforms can supply +an external library through: ```text -Dthegreeklab.pbivnorm.path=/absolute/path/to/library