summaryrefslogtreecommitdiff
path: root/neozip/.github/workflows/link.yml
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 19:56:09 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 19:56:09 +0300
commit7fb132859fda54aa96bc9dd46d302b343eeb5a02 (patch)
treeb43ae77d7451fb470a260c03349a1caf2846c5e5 /neozip/.github/workflows/link.yml
parentb1e34e861b5d732afe828d58aad2c638135061fd (diff)
parentc2712b8a345191f6ed79558c089777df94590087 (diff)
downloadProject-Tick-7fb132859fda54aa96bc9dd46d302b343eeb5a02.tar.gz
Project-Tick-7fb132859fda54aa96bc9dd46d302b343eeb5a02.zip
Add 'neozip/' from commit 'c2712b8a345191f6ed79558c089777df94590087'
git-subtree-dir: neozip git-subtree-mainline: b1e34e861b5d732afe828d58aad2c638135061fd git-subtree-split: c2712b8a345191f6ed79558c089777df94590087
Diffstat (limited to 'neozip/.github/workflows/link.yml')
-rw-r--r--neozip/.github/workflows/link.yml71
1 files changed, 71 insertions, 0 deletions
diff --git a/neozip/.github/workflows/link.yml b/neozip/.github/workflows/link.yml
new file mode 100644
index 0000000000..d90571cb97
--- /dev/null
+++ b/neozip/.github/workflows/link.yml
@@ -0,0 +1,71 @@
+name: Link
+on: [workflow_call, workflow_dispatch]
+jobs:
+ zlib:
+ name: Link zlib
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+ with:
+ show-progress: 'false'
+
+ - name: Checkout zlib repository
+ uses: actions/checkout@v6
+ 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 -j5 --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 -j5 --config Release
+
+ - name: Upload build errors
+ uses: actions/upload-artifact@v7
+ 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@v6
+ 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 -j5 --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 -j5 --config Release
+
+ - name: Upload build errors
+ uses: actions/upload-artifact@v7
+ if: failure()
+ with:
+ name: Link zlib-ng compat (CMake Logs)
+ path: |
+ **/CMakeFiles/CMakeOutput.log
+ **/CMakeFiles/CMakeError.log
+ retention-days: 30