From 9bdb07e9015d675e991cd6d1dc1eada24d9d24b4 Mon Sep 17 00:00:00 2001 From: Stephan Troyer Date: Thu, 19 Sep 2024 23:41:27 +0200 Subject: [PATCH] reorder --- .github/workflows/compile-libqalculate.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/compile-libqalculate.yml b/.github/workflows/compile-libqalculate.yml index 2adf343..627252e 100644 --- a/.github/workflows/compile-libqalculate.yml +++ b/.github/workflows/compile-libqalculate.yml @@ -23,7 +23,17 @@ jobs: - name: Checkout 🛎 uses: actions/checkout@v4 + - name: Setup dependency cache + id: cache-dependencies + uses: actions/cache@v2 + with: + path: | + ~/opt/lib + ~/opt/include + key: a${{env.LIBQALCULATE_VERSION}}-gmp${{env.GMP_VERSION}}-mpfr${{env.MPFR_VERSION}}-libxml2${{env.LIBXML2_VERSION}}-em${{env.EM_VERSION}}-${{ runner.os }} + - name: Setup emsdk cache + if: steps.cache-dependencies.outputs.cache-hit != 'true' id: cache-system-libraries uses: actions/cache@v2 with: @@ -31,20 +41,12 @@ jobs: key: ${{env.EM_VERSION}}-${{ runner.os }} - name: Setup emsdk + if: steps.cache-dependencies.outputs.cache-hit != 'true' uses: mymindstorm/setup-emsdk@v14 with: 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 if: steps.cache-dependencies.outputs.cache-hit != 'true' run: |