diff --git a/.github/workflows/win-msys2.yml b/.github/workflows/win-msys2.yml index ee89c1b..afa5c2e 100644 --- a/.github/workflows/win-msys2.yml +++ b/.github/workflows/win-msys2.yml @@ -10,7 +10,6 @@ on: env: BUILD_TYPE: RelWithDebInfo INSTALL_LOCATION: SonivoxV4 - TEMP: temp jobs: build: @@ -53,26 +52,28 @@ jobs: gtest:p - name: '${{ matrix.icon }} TEMP Environment Variable' + id: tmp run: | - mkdir temp + echo "cache_path=$(cygpath -m $TEMP)" >> $GITHUB_OUTPUT + echo "dependencies=$(cygpath -m $MSYSTEM_PREFIX/bin)" >> $GITHUB_OUTPUT - name: '${{ matrix.icon }} Downloading a DLS file for testing' uses: ethanjli/cached-download-action@v0.1.3 with: url: http://www.ronimusic.com/sf2/Airfont_340.dls - destination: temp/soundfont.dls + destination: ${{steps.tmp.outputs.cache_path}}/soundfont.dls cache-key: cached.soundfont.dls enable-cross-os-archive: true - name: '${{ matrix.icon }} Configure CMake' + id: configuration run: > cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} - -DDEPENDENCY_DIRS=${{steps.msys2.outputs.msys2-location}}/${{matrix.sys}}/bin + -DDEPENDENCY_DIRS=${{steps.tmp.outputs.dependencies}} -DCPACK_SYSTEM_NAME=${{matrix.sys}} -DINSTALL_DEPENDENCIES=ON - id: configuration - name: '${{ matrix.icon }} Build' run: cmake --build build --config ${{env.BUILD_TYPE}}