diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index d13b6bf86..2649b4a4e 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -29,18 +29,19 @@ jobs: uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: | - "${{ github.workspace }}/vcpkgAssets" - "${{ github.workspace }}/vcpkgBCache" - "${{ github.workspace }}/vcpkgBin" - "${{ github.workspace }}/vcpkgBuild" - key: vcpkgCache-${{ github.repository_owner }}-${{ matrix.os }}-${{ matrix.triplet }}-${{ hashFiles('vcpkg.json') }} + ${{ github.workspace }}\vcpkgAssets + ${{ github.workspace }}\vcpkgBCache + ${{ github.workspace }}\vcpkgBin + ${{ github.workspace }}\vcpkgBuild + key: vcpkgCache-${{ github.repository_owner }}-windows-latest-x64-windows-${{ hashFiles('.github/workflows/vcpkg.json') }} - name: Create directories on cache miss run: | - mkdir -p "${{ github.workspace }}/vcpkgAssets" - mkdir -p "${{ github.workspace }}/vcpkgBCache" - mkdir -p "${{ github.workspace }}/vcpkgBin" - mkdir -p "${{ github.workspace }}/vcpkgBuild" + New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\vcpkgAssets" + New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\vcpkgBCache" + New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\vcpkgBin" + New-Item -Force -ItemType Directory -Path "${{ github.workspace }}\vcpkgBuild" + shell: pwsh if: steps.cache-vcpkg-restore.outputs.cache-hit != 'true' - uses: actions/setup-python@v6 @@ -64,12 +65,12 @@ jobs: faber --info=tools cxx - name: build - shell: cmd + shell: pwsh run: | faber --builddir=build cxx.name=msvc --log=commands --log=output --with-boost-include="${{ github.workspace }}/vcpkgInstalled/x64-windows/include" -j4 - name: test - shell: cmd + shell: pwsh run: | faber --builddir=build cxx.name=msvc --with-boost-include="${{ github.workspace }}/vcpkgInstalled/x64-windows/include" -j4 test.report @@ -78,9 +79,9 @@ jobs: uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: | - "${{ github.workspace }}/vcpkgAssets" - "${{ github.workspace }}/vcpkgBCache" - "${{ github.workspace }}/vcpkgBin" - "${{ github.workspace }}/vcpkgBuild" + ${{ github.workspace }}\vcpkgAssets + ${{ github.workspace }}\vcpkgBCache + ${{ github.workspace }}\vcpkgBin + ${{ github.workspace }}\vcpkgBuild key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }} if: steps.cache-vcpkg-restore.outputs.cache-hit != 'true'