Skip to content

Commit

Permalink
Updating lz4
Browse files Browse the repository at this point in the history
  • Loading branch information
myst6re committed Feb 24, 2024
1 parent 9cf4b4a commit dbebef4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
create: null

env:
debianRequirements: "build-essential git zlib1g-dev cmake qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-declarative-dev qt6-base-dev qt6-base-dev-tools qt6-translations-l10n libqt6opengl6-dev libgl1-mesa-dev wget curl devscripts"
debianRequirements: "build-essential git zlib1g-dev liblz4-dev cmake qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-declarative-dev qt6-base-dev qt6-base-dev-tools qt6-translations-l10n libqt6opengl6-dev libgl1-mesa-dev wget curl devscripts"

jobs:
main_build:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
lz4_path: ${{ github.workspace }}/../lz4-git
lz4_build_path: ${{ github.workspace }}/../build-lz4-git
lz4_installation_path: C:/lz4
lz4_version: "1.3"
lz4_version: "1.9.4"
deling_build_path: ${{ github.workspace }}/../build-deling
deling_installation_path: ${{ github.workspace }}/../installation-deling
deling_appbundle_path: ${{ github.workspace }}/../appbundle-deling
Expand Down Expand Up @@ -111,6 +111,12 @@ jobs:
cmake -S${{ env.zlib_path }} -B${{ env.zlib_build_path }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_INSTALL_PREFIX=${{ env.zlib_installation_path }}
cmake --build ${{ env.zlib_build_path }} --target install -j3
- name: Install lz4
if: runner.os == 'Linux'
run: |
sudo apt-get update -y > /dev/null
sudo apt-get install -qqq liblz4-dev > /dev/null
- name: Cache lz4
id: cache-lz4
if: runner.os == 'Windows'
Expand All @@ -119,13 +125,14 @@ jobs:
path: ${{ env.lz4_installation_path }}
key: ${{ runner.os }}${{ matrix.win_arch }}-lz4-${{ env.lz4_version}}

- name: Install lz4
- name: Install lz4 Windows
if: (runner.os == 'Windows') && (steps.cache-lz4.outputs.cache-hit != 'true')
run: |
git clone -q --depth 1 --single-branch --branch=v${{ env.lz4_version }} https://github.com/lz4/lz4 ${{ env.lz4_path }}
cmake -S${{ env.lz4_path }} -B${{ env.lz4_build_path }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_INSTALL_PREFIX=${{ env.lz4_installation_path }}
cmake --build ${{ env.lz4_build_path }} --target install -j3
- name: Download linuxdeployqt
if: runner.os == 'Linux'
run: |
Expand Down

0 comments on commit dbebef4

Please sign in to comment.