forked from madler/zlib
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.25 KB
/
libpng.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
46
47
48
49
50
51
name: Libpng
on: [push, pull_request]
jobs:
libpng:
name: Ubuntu Clang
runs-on: ubuntu-latest
steps:
- name: Checkout repository (zlib-ng)
uses: actions/checkout@v3
- name: Generate project files (zlib-ng)
run: |
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DZLIB_COMPAT=ON \
-DZLIB_ENABLE_TESTS=OFF
env:
CC: clang
CFLAGS: -fPIC
CI: true
- name: Compile source code (zlib-ng)
run: cmake --build . --config Release
- name: Checkout repository (libpng)
uses: actions/checkout@v3
with:
repository: glennrp/libpng
path: libpng
- name: Generate project files (libpng)
run: |
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DPNG_TESTS=ON \
-DPNG_STATIC=OFF \
-DZLIB_INCLUDE_DIR=.. \
-DZLIB_LIBRARY=$PWD/../libz.a
working-directory: libpng
env:
CC: clang
CI: true
- name: Compile source code (libpng)
run: cmake --build . --config Release
working-directory: libpng
- name: Run test cases (libpng)
run: ctest -C Release --output-on-failure --max-width 120
working-directory: libpng