forked from zlib-ng/zlib-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (62 loc) · 2.33 KB
/
link.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Link
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
zlib:
name: Link zlib
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
show-progress: 'false'
- name: Checkout zlib repository
uses: actions/checkout@v4
with:
show-progress: 'false'
repository: madler/zlib
path: zlib
- name: Generate project files (zlib)
run: cmake -S zlib -B zlib/build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
- name: Compile source code (zlib)
run: cmake --build zlib/build -j2 --config Release
- name: Generate project files (native)
run: cmake -S . -B native -DZLIB_COMPAT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DZLIB_LIBRARIES=../zlib/build/libz.a -DZLIB_INCLUDE_DIR="../zlib/build;../zlib"
- name: Compile source code (native)
run: cmake --build native -j2 --config Release
- name: Upload build errors
uses: actions/upload-artifact@v4
if: failure()
with:
name: Link zlib (CMake Logs)
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
retention-days: 30
zlib-ng-compat:
name: Link zlib-ng compat
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
show-progress: 'false'
- name: Generate project files (compat)
run: cmake -S . -B compat -DZLIB_COMPAT=ON -DZLIB_ENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DWITH_MAINTAINER_WARNINGS=ON
- name: Compile source code (compat)
run: cmake --build compat -j2 --config Release
- name: Generate project files (native)
run: cmake -S . -B native -DZLIB_COMPAT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DZLIB_LIBRARIES=../compat/libz.a -DZLIB_INCLUDE_DIR=../compat
- name: Compile source code (native)
run: cmake --build native -j2 --config Release
- name: Upload build errors
uses: actions/upload-artifact@v4
if: failure()
with:
name: Link zlib-ng compat (CMake Logs)
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
retention-days: 30