mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Library] Update zlibng (#1255)
* Update zlibng * Set cmake path more directly in zlibng to hopefully fix an issue with the build on drone * I'm dumb, missing / in path * Mackal helps with a dumb gitignore issue * Adding all the files, not sure what's ignoring them and im tired of looking * Some tweaks to zlibng build to hopefully get it to build properly. works on msvc now
This commit is contained in:
+73
@@ -0,0 +1,73 @@
|
||||
name: CI Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
jobs:
|
||||
ci-cmake:
|
||||
name: ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: Windows MSVC Win32
|
||||
os: windows-latest
|
||||
compiler: cl
|
||||
cmake-args: -A Win32
|
||||
deploy-name: win32
|
||||
|
||||
- name: Windows MSVC Win32 Compat
|
||||
os: windows-latest
|
||||
compiler: cl
|
||||
cmake-args: -A Win32 -DZLIB_COMPAT=ON
|
||||
deploy-name: win32-compat
|
||||
|
||||
- name: Windows MSVC Win64
|
||||
os: windows-latest
|
||||
compiler: cl
|
||||
cmake-args: -A x64
|
||||
deploy-name: win64
|
||||
|
||||
- name: Windows MSVC Win64 Compat
|
||||
os: windows-latest
|
||||
compiler: cl
|
||||
cmake-args: -A x64 -DZLIB_COMPAT=ON
|
||||
deploy-name: win64-compat
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Set environment variables
|
||||
shell: bash
|
||||
run: echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate project files
|
||||
run: |
|
||||
cmake . ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Release -DZLIB_ENABLE_TESTS=ON -DCMAKE_INSTALL_PREFIX=out -DINSTALL_UTILS=ON
|
||||
env:
|
||||
CC: ${{ matrix.compiler }}
|
||||
CI: true
|
||||
|
||||
- name: Compile source code
|
||||
run: |
|
||||
cmake --build . --config Release --target install
|
||||
|
||||
- name: Package release (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
cd out
|
||||
7z a -tzip ../zlib-ng-${{ matrix.deploy-name }}.zip bin include lib ../LICENSE.md ../README.md
|
||||
|
||||
- name: Upload release (Windows)
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
if: runner.os == 'Windows'
|
||||
with:
|
||||
asset_name: zlib-ng-${{ matrix.deploy-name }}.zip
|
||||
file: zlib-ng-${{ matrix.deploy-name }}.zip
|
||||
tag: ${{env.tag}}
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
overwrite: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
Reference in New Issue
Block a user