From 4933a25aa416991607b617fcc8fb882499487c33 Mon Sep 17 00:00:00 2001 From: Stephan Troyer Date: Thu, 19 Sep 2024 19:56:57 +0200 Subject: [PATCH] fix script --- .github/workflows/compile-libqalculate.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile-libqalculate.yml b/.github/workflows/compile-libqalculate.yml index e456df1..800aa86 100644 --- a/.github/workflows/compile-libqalculate.yml +++ b/.github/workflows/compile-libqalculate.yml @@ -23,7 +23,7 @@ jobs: - name: Checkout 🛎 uses: actions/checkout@v4 - - name: Setup cache + - name: Setup emsdk cache id: cache-system-libraries uses: actions/cache@v2 with: @@ -36,6 +36,15 @@ jobs: version: ${{env.EM_VERSION}} actions-cache-folder: ${{env.EM_CACHE_FOLDER}} + - name: Setup dependency cache + id: cache-dependencies + uses: actions/cache@v2 + with: + path: | + ~/opt/lib + ~/opt/include + key: ${{env.LIBQALCULATE_VERSION}}-gmp${{env.GMP_VERSION}}-mpfr${{env.MPFR_VERSION}}-libxml2${{env.LIBXML2_VERSION}}-em${{env.EM_VERSION}}-${{ runner.os }} + - name: Setup dependencies run: | sudo apt install build-essential lzip binutils autoconf intltool libtool automake lbzip2 lzip @@ -59,7 +68,7 @@ jobs: make install cd .. - wget http://xmlsoft.org/download/libxml2-${LIBXML2_VERSION}.tar.gz -O libxml2.tar.gz + wget http://xmlsoft.org/download/libxml2-${LIBXML2_VERSION}.tar.gz -O libxml2-${LIBXML2_VERSION}.tar.gz tar xf libxml2-${LIBXML2_VERSION}.tar.gz cd libxml2-${LIBXML2_VERSION} emconfigure ./configure --prefix=${HOME}/opt --disable-shared