Make sure the math library is included when building with shared libr… #285
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build-linux-static-openssl: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update build environment | |
run: sudo apt-get update --fix-missing -y | |
- name: Install prerequisites | |
run: sudo apt-get install -y avahi-daemon cppcheck libavahi-client-dev libpam-dev libssl-dev zlib1g-dev | |
- name: Configure | |
env: | |
CC: /usr/bin/gcc | |
run: ./configure --enable-debug --enable-maintainer --enable-sanitizer --enable-static --disable-shared --with-tls=openssl | |
- name: Make | |
run: make | |
- name: Test | |
run: make test || cat test/test-ippserver.log | |
build-linux-shared-gnutls: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update build environment | |
run: sudo apt-get update --fix-missing -y | |
- name: Install prerequisites | |
run: sudo apt-get install -y avahi-daemon cppcheck libavahi-client-dev libpam-dev libgnutls28-dev zlib1g-dev | |
- name: Configure | |
env: | |
CC: /usr/bin/gcc | |
run: ./configure --enable-debug --enable-maintainer --enable-sanitizer --enable-static --enable-shared --with-tls=gnutls | |
- name: Make | |
run: make | |
- name: Test | |
run: make test || cat test/test-ippserver.log | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install prerequisites | |
run: brew install cppcheck openssl@3 | |
- name: Configure | |
run: ./configure --enable-debug --enable-maintainer --enable-sanitizer --enable-static --disable-shared | |
- name: Make | |
run: make | |
- name: Test | |
run: make test || cat test/test-ippserver.log | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup msbuild | |
uses: microsoft/[email protected] | |
- name: Restore NuGet packages | |
run: cd vcnet; nuget restore ippsample.sln; cd ..\libcups\vcnet; nuget restore libcups.sln; cd ..\..\pdfio; nuget restore pdfio.sln | |
- name: Build | |
run: cd vcnet; msbuild ippsample.sln |