Skip to content

Commit

Permalink
Exercise the new symbol prefix option in CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz authored and Dead2 committed Oct 9, 2021
1 parent 714f624 commit b418e9c
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
cmake-args: -DWITH_SANITIZER=Address
codecov: ubuntu_gcc

- name: Ubuntu GCC Symbol Prefix
os: ubuntu-latest
compiler: gcc
cmake-args: -DZLIB_SYMBOL_PREFIX=zTest_
codecov: ubuntu_gcc_sprefix

- name: Ubuntu GCC Compat SPrefix
os: ubuntu-latest
compiler: gcc
cmake-args: -DZLIB_COMPAT=ON -DZLIB_SYMBOL_PREFIX=zTest_
codecov: ubuntu_gcc_compat_sprefix

- name: Ubuntu GCC OSB -O1 No Unaligned64
os: ubuntu-latest
compiler: gcc
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ jobs:
cflags: -static
ldflags: -static

- name: macOS GCC symbol prefix
os: macOS-latest
compiler: gcc
configure-args: --sprefix=zTest_

- name: macOS GCC symbol prefix & compat
os: macOS-latest
compiler: gcc
configure-args: --zlib-compat --sprefix=zTest_

- name: macOS GCC
os: macOS-latest
compiler: gcc
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/nmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ jobs:
makefile: win32/Makefile.msc
vc-vars: x86

- name: Windows NMake x64 compat
os: windows-latest
makefile: win32/Makefile.msc
vc-vars: x86_amd64
additional-args: ZLIB_COMPAT=yes

- name: Windows NMake x64 sprefix
os: windows-latest
makefile: win32/Makefile.msc
vc-vars: x86_amd64
additional-args: SYMBOL_PREFIX=zTest_

- name: Windows NMake x64 sprefix compat
os: windows-latest
makefile: win32/Makefile.msc
vc-vars: x86_amd64
additional-args: ZLIB_COMPAT=yes SYMBOL_PREFIX=zTest_

- name: Windows NMake x64
os: windows-latest
makefile: win32/Makefile.msc
Expand All @@ -36,13 +54,13 @@ jobs:
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.vc-vars }}
nmake -f ${{ matrix.makefile }}
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }}
- name: Run test cases
shell: cmd
# Don't run tests on Windows ARM
if: contains(matrix.vc-vars, 'arm') == false
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.vc-vars }}
nmake -f ${{ matrix.makefile }} test
nmake -f ${{ matrix.makefile }} testdll
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} test
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} testdll
6 changes: 6 additions & 0 deletions .github/workflows/pigz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
compiler: gcc
codecov: ubuntu_gcc_pigz

- name: Ubuntu GCC Symbol Prefix
os: ubuntu-latest
compiler: gcc
codecov: ubuntu_gcc_pigz
cmake-args: -DZLIB_SYMBOL_PREFIX=zTest_

- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pkgcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ jobs:
cmake-args: -DWITH_NATIVE_INSTRUCTIONS=ON
configure-args: --native

- name: macOS Clang Symbol Prefix
os: macOS-latest
compiler: clang
cmake-args: -DZLIB_SYMBOL_PREFIX=zTest_
configure-args: --sprefix=zTest_

steps:
- name: Checkout repository
uses: actions/checkout@v1
Expand Down

0 comments on commit b418e9c

Please sign in to comment.