From cc44fda875d50df2010cdc97ea06a83dec4c735b Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 13 Sep 2023 10:03:52 +0100 Subject: [PATCH] Fix Linux release build --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07996742..e681aec9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,14 @@ jobs: wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz tar -xf boost_1_81_0.tar.gz + - name: Get ICU + id: get-icu + run: | + wget https://github.com/unicode-org/icu/releases/download/release-71-1/icu4c-71_1-Ubuntu20.04-x64.tgz + tar -xf icu4c-71_1-Ubuntu20.04-x64.tgz + + echo "root=${{ github.workspace }}/icu/usr/local" >> $GITHUB_OUTPUT + - name: Install APT package dependencies run: | sudo apt-get update @@ -75,12 +83,13 @@ jobs: mkdir build cd build export CXX="g++-10" CC="gcc-10" - cmake .. -DBOOST_ROOT="boost_1_81_0" -DCPACK_PACKAGE_VERSION="${{ needs.create_release.outputs.git_tag }}" + cmake .. -DBOOST_ROOT="boost_1_81_0" -DICU_ROOT="${{ steps.get-icu.outputs.root }}" -DCPACK_PACKAGE_VERSION="${{ needs.create_release.outputs.git_tag }}" make all - name: Run tests run: | cd build + export LD_LIBRARY_PATH="${{ steps.get-icu.outputs.root }}/lib" ./libloot_internals_tests ./libloot_tests