-
Notifications
You must be signed in to change notification settings - Fork 115
45 lines (32 loc) · 916 Bytes
/
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
42
43
44
45
name: Continuous Integration
on:
push:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libtiff-dev libpng-dev libturbojpeg-dev libwebp-dev libavif-dev libmemcached-dev libopenjp2-7-dev
- name: Configure
run: |
./autogen.sh
./configure
- name: Compile
run: make
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: brew install automake libtool fcgi libtiff openjpeg libmemcached libpng webp libavif libomp
- name: Configure
run: |
./autogen.sh
export CFLAGS="-I/opt/homebrew/include"
export CPPFLAGS=${CFLAGS}
export LDFLAGS="-L/opt/homebrew/lib"
./configure
- name: Compile
run: make