diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4d8b821..4803e5e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -47,7 +47,7 @@ jobs: #run: echo "DEP_CACHE_KEY=dependencies-cache-key-${{ matrix.platform }}-${{ matrix.build_type }}-$(echo $GITHUB_REF | sed 's/refs\/heads\///')" >> $GITHUB_ENV run: | cache_key="dependencies-cache-key-${{ matrix.platform }}-${{ matrix.build_type }}-$(echo $GITHUB_REF | sed 's/refs\/heads\///')" - echo "generated $cache_key" + echo "::debug::Set generated $cache_key" echo "cache_key=$cache_key" >> $GITHUB_OUTPUT # Step: Set paths @@ -79,19 +79,19 @@ jobs: dependencies-cache-key-${{ matrix.platform }}-${{ matrix.build_type }}- - name: Build dependencies - if: steps.restore-cached-dependencies.outputs.cache-hit != 'true' + if: steps.restore-cached-dependencies.outputs.cache-hit == 'false' shell: pwsh run: > - ./scripts/dependencies_installer/InstallDependencies.ps1 - -WorkDir "${{ steps.paths.outputs.dependencies_work_dir }}" - -InstallDir "${{ steps.paths.outputs.dependencies_install_dir }}" - -BuildType "${{ matrix.build_type }}" - -ParallelJobs 10 - -GitTags @{zlib = 'v1.2.13'; hdf5 = 'hdf5-1_14_0'; sundials = 'v5.8.0'; yamlcpp = '0.8.0'; catch2 = 'v3.5.2'; googletest = 'v1.14.0'; units = 'v0.9.1'; fmt='9.1.0'; eigen ='3.4.0'; boost ='1.84.0'; cantera = 'v2.6.0'} + ./scripts/dependencies_installer/InstallDependencies.ps1 ` + -WorkDir "${{ steps.paths.outputs.dependencies_work_dir }}" ` + -InstallDir "${{ steps.paths.outputs.dependencies_install_dir }}" ` + -BuildType "${{ matrix.build_type }}" ` + -ParallelJobs 10 ` + -GitTags @{zlib = 'v1.2.13'; hdf5 = 'hdf5-1_14_0'; sundials = 'v5.8.0'; yamlcpp = '0.8.0'; catch2 = 'v3.5.2'; googletest = 'v1.14.0'; units = 'v0.9.1'; fmt='9.1.0'; eigen ='3.4.0'; boost ='1.84.0'; cantera = 'v2.6.0'} - name: Cache dependencies uses: actions/cache@v4 - if: steps.restore-cached-dependencies.outputs.cache-hit != 'true' + if: steps.restore-cached-dependencies.outputs.cache-hit == 'false' with: path: ${{ steps.paths.outputs.dependencies_install_dir }} #key: ${{ env.DEP_CACHE_KEY }}