Skip to content

updated indimail-spamfilter.spec for mageia #139

updated indimail-spamfilter.spec for mageia

updated indimail-spamfilter.spec for mageia #139

name: indimail-spamfilter Ubuntu, Mac OSX CI
on:
push:
paths:
- '**/indimail-spamfilter-x/**'
- '**/prepare_obs'
- '**/catChangeLog'
- .github/workflows/indimail-spamfilter-c-cpp.yml
- '!**/indimail-spamfilter-x/debian/*'
- '!**/doc/*'
- '!**.md'
workflow_dispatch:
jobs:
build:
name: ${{ matrix.host }}-${{ matrix.config.name }}
runs-on: ${{ matrix.host }}
strategy:
fail-fast: false
matrix:
host: [ubuntu-latest, macos-latest]
steps:
- name: extra_packages
run: |
if [ "${OS}" = "macos-latest" ] ; then brew install automake autoconf libtool pkgconfig xmlto asciidoc docbook docbook-xsl berkeley-db; fi
if [ "${OS}" = "ubuntu-latest" ] ; then sudo apt-get update && sudo apt-get install gcc g++ automake autoconf libtool xmlto libgsl-dev bison flex libdb-dev; fi
env:
OS: ${{ matrix.host }}
- name: checkout_main
uses: actions/checkout@v2
- name: build indimail-spamfilter
run: |
cd indimail-spamfilter-x
if [ "${OS}" = "macos-latest" ] ; then env CPPFLAGS="-I/opt/local/include -I/opt/homebrew/opt/berkeley-db/include" LDFLAGS=-L/opt/homebrew/opt/berkeley-db/lib ./default.configure --with-libdb-prefix=/opt/homebrew/opt/berkeley-db/lib; else ./default.configure; fi
if [ "${OS}" = "macos-latest" ] ; then env XML_CATALOG_FILES=/usr/local/etc/xml/catalog make; else make; fi
env:
OS: ${{ matrix.host }}