File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 cmake . -B build -DFMU4CPP_BUILD_TESTS=ON -DFMU4CPP_BUILD_EXAMPLES=ON
1919 cmake --build build
2020
21- - name : " Read model name"
21+ - name : " Read model path/ name"
2222 run : |
2323 mp=$(cat build/model.txt)
2424 mp=$(echo "$mp" | tr -d '\r' | xargs)
5252 cmake . -B build -DFMU4CPP_BUILD_TESTS=ON -DFMU4CPP_BUILD_EXAMPLES=ON -A x64
5353 cmake --build build --config Release
5454
55- - name : " Read model name"
55+ - name : " Read model path/ name"
5656 run : |
57- echo "MODEL_PATH=$(cat build/model.txt)" | Out-File -FilePath $env:GITHUB_ENV -Append
57+ $mp = (Get-Content -Raw build/model.txt).Trim()
58+ "MODEL_PATH=$mp" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
5859 $mb = Split-Path $mp -Leaf
5960 "MODEL_BASENAME=$mb" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
6061
You can’t perform that action at this time.
0 commit comments