-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.36 KB
/
courier-imap-c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: courier-imap Ubuntu, Mac OSX CI
on:
push:
paths:
- '**/courier-imap-x/**'
- .github/workflows/courier-imap-c-cpp.yml
- '!**/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 libidn2 pcre pcre2 berkeley-db gdbm openssl; fi
if [ "${OS}" = "ubuntu-latest" ] ; then sudo apt-get install gcc g++ automake autoconf libtool libpam0g-dev libpcre3-dev libgdbm-dev libdb-dev libgcrypt20-dev libssl-dev libidn2-dev; fi
env:
OS: ${{ matrix.host }}
- name: checkout_main
uses: actions/checkout@v2
- name: build courier-imap
run: |
cd courier-imap-x
if [ "${OS}" = "macos-latest" ] ; then env CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.3.1/include" LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.3.1/lib" ./default.configure; else ./default.configure; fi
if [ "${OS}" = "macos-latest" ] ; then env CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.3.1/include" LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.3.1/lib" make; else make; fi
env:
OS: ${{ matrix.host }}