Skip to content

Commit df1c301

Browse files
committed
fix workflow - add dep-comp yaml-cpp
1 parent 4680be4 commit df1c301

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/cmake.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,46 @@ jobs:
419419
echo "VERSION: $VERSION"
420420
echo "RELEASE TAGNAME: ${{ github.event.release.tag_name }}"
421421
422+
# - name: Install 7zip
423+
# run: |
424+
# if [ "$RUNNER_OS" == "Linux" ]; then
425+
# sudo apt install -y p7zip-full
426+
# elif [ "$RUNNER_OS" == "Windows" ]; then
427+
# # choco install yaml-cpp
428+
# vcpkg install 7zip
429+
# elif [ "$RUNNER_OS" == "Darwin" ]; then
430+
# # brew install p7zip
431+
# true
432+
# elif [ "$RUNNER_OS" == "macOS" ]; then
433+
# # brew install p7zip
434+
# true
435+
# else
436+
# echo "RUNNER OS ($RUNNER_OS) not supported"
437+
# exit 1
438+
# fi
439+
# shell: bash
440+
441+
- name: Install yaml-cpp
442+
run: |
443+
if [ "$RUNNER_OS" == "Linux" ]; then
444+
sudo apt install -y libyaml-cpp-dev
445+
elif [ "$RUNNER_OS" == "Windows" ]; then
446+
# choco install yaml-cpp
447+
vcpkg install yaml-cpp:x64-windows
448+
elif [ "$RUNNER_OS" == "Darwin" ]; then
449+
brew install yaml-cpp
450+
elif [ "$RUNNER_OS" == "macOS" ]; then
451+
echo "install yaml-cpp in macOS"
452+
brew install yaml-cpp
453+
# cannot work for arm64 macOS:
454+
# ls -la $(brew --prefix yaml-cpp)/ /usr/local/include/yaml-cpp/ /usr/local/lib/libyaml-cpp*
455+
# ls -la $(brew --prefix yaml-cpp)/ /opt/homebrew/include/yaml-cpp/ /opt/homebrew/lib/libyaml-cpp*
456+
else
457+
echo "$RUNNER_OS not supported"
458+
exit 1
459+
fi
460+
shell: bash
461+
422462
- name: Cache/CCache
423463
uses: actions/cache@v4
424464
with:
@@ -614,7 +654,7 @@ jobs:
614654
615655
- name: Create Release
616656
id: create_release
617-
uses: softprops/action-gh-release@v2.3.2 # pin to v2.2.1 to solve 422 error, see its issue #616
657+
uses: softprops/action-gh-release@v2 # pin to v2.2.1 to solve 422 error, see its issue #616
618658
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.config.build_type == 'Release' && matrix.config.package_generator != '' }}
619659
env:
620660
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)