Skip to content

Commit

Permalink
Make: Add checks to make sure stringzillite is built correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbob999 committed Oct 26, 2024
1 parent c40ca24 commit c39c590
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
}
- name: Test C++
run: build_artifacts/stringzilla_test_cpp20
- name: Check stringzillite is built correctly
run: test -z "$(ldd build_artifacts/libstringzillite.so | grep '.so')"
- name: Test on Real World Data
run: |
build_artifacts/stringzilla_bench_search ${DATASET_PATH} # for substring search
Expand Down Expand Up @@ -169,6 +171,8 @@ jobs:
}
- name: Test C++
run: build_artifacts/stringzilla_test_cpp20
- name: Check stringzillite is built correctly
run: test -z "$(ldd build_artifacts/libstringzillite.so | grep '.so')"
- name: Test on Real World Data
run: |
build_artifacts/stringzilla_bench_search ${DATASET_PATH} # for substring search
Expand Down Expand Up @@ -278,6 +282,9 @@ jobs:
test -e build_artifacts/libstringzillite.so
test -e build_artifacts/libstringzilla_shared.so
test -e build_artifacts/stringzilla_test_cpp20
- name: Check stringzillite is built correctly
run: test -z "$(ldd build_artifacts/libstringzillite.so | grep '.so')"

test_macos:
name: MacOS
Expand All @@ -301,6 +308,8 @@ jobs:
cmake --build build_artifacts --config RelWithDebInfo
- name: Test C++
run: build_artifacts/stringzilla_test_cpp17
- name: Check stringzillite is built correctly
run: test -z "$(ldd build_artifacts/libstringzillite.so | grep '.so')"
- name: Test on Real World Data
run: |
build_artifacts/stringzilla_bench_search ${DATASET_PATH} # for substring search
Expand Down Expand Up @@ -374,6 +383,9 @@ jobs:
)
- name: Test C++
run: .\build_artifacts\stringzilla_test_cpp20.exe
- name: Check stringzillite is built correctly
shell: cmd
run: dumpbin /nologo /dependents .\build_artifacts\stringzillite.dll | findstr /r "^[^a-z].*\.dll" && exit /b 1 || exit /b 0
- name: Test on Real World Data
run: |
.\build_artifacts\stringzilla_bench_search.exe ${DATASET_PATH} # for substring search
Expand Down Expand Up @@ -435,10 +447,15 @@ jobs:
# We can't run the produced builds, but we can make sure they exist
- name: Test artifacts presense
shell: cmd
run: |
type build_artifacts\stringzillite.dll >NUL
type build_artifacts\stringzilla_shared.dll >NUL
type build_artifacts\stringzilla_test_cpp20.exe >NUL
- name: Check stringzillite is built correctly
shell: cmd
run: dumpbin /nologo /dependents .\build_artifacts\stringzillite.dll | findstr /r "^[^a-z].*\.dll" && exit /b 1 || exit /b 0

test_alpine:
name: Alpine Linux
Expand All @@ -461,6 +478,8 @@ jobs:
cmake --build build_artifacts --config RelWithDebInfo
- name: Test C++
run: build_artifacts/stringzilla_test_cpp20
- name: Check stringzillite is built correctly
run: test -z "$(ldd build_artifacts/libstringzillite.so | grep '.so')"

# Python
- name: Build Python
Expand Down

0 comments on commit c39c590

Please sign in to comment.