-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.17 KB
/
libqmail-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
39
40
41
name: libqmail Ubuntu, Mac OSX CI
on:
push:
paths:
- '**'
- .github/workflows/libqmail-c-cpp.yml
- '!**/debian/*'
- '!**/libqmail.spec.in'
- '!**/doc/*'
- '!**.md'
- '!**.3'
- '!**/obs/*'
- '!**/libqmail-freebsd.yml'
- '!**/libqmail-obs.yml'
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: checkout
uses: actions/checkout@v2
- name: Darwin
run: |
if [ "${OS}" = "macos-latest" ]; then brew install automake autoconf libtool pkgconfig openssl; fi
if [ "${OS}" = "ubuntu-latest" ] ; then sudo apt-get install gcc g++ automake autoconf libtool libssl-dev libsodium-dev; fi
env:
OS: ${{ matrix.host }}
- name: configure
run: env CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" ./default.configure
- name: make
run: env CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" make