Skip to content

Commit

Permalink
Make valid json
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Nov 26, 2024
1 parent dfacb02 commit 72cdd4f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/reusable-ros-tooling-win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ jobs:
token: ${{ github.token }}
github-binarycache: true

- run: Write-Output ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} # just for debugging
- name: Make json from vcpkg cmake
id: vcpkg-json
run: |
$singlePath = "${{ steps.vcpkg.outputs.vcpkg-cmake-config }}"
$doublePath = $singlePath -replace "\\", "\\\\"
Write-Host "Transformed Path: $doublePath"
"vcpkg-cmake-config=$doublePath" | Out-File -FilePath $Env:GITHUB_OUTPUT -Append
- uses: ros-tooling/[email protected]
with:
Expand Down Expand Up @@ -122,7 +128,7 @@ jobs:
{
"build": {
"cmake-args": [
${{ steps.vcpkg.outputs.vcpkg-cmake-config }},
"${{ steps.vcpkg-json.outputs.vcpkg-cmake-config }}"
]
},
"test": {
Expand Down

0 comments on commit 72cdd4f

Please sign in to comment.