Skip to content

Commit

Permalink
Use new syntax for os detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacquwes committed Sep 27, 2023
1 parent 4b7c1df commit fb20800
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ jobs:
- name: Bootstrap vcpkg
# Bootstrap vcpkg using the appropriate triplet for the current runner operating system
run: |
if [ ${{ matrix.os }} == "ubuntu-latest" ]; then
if [ "$RUNNER_OS" == "Linux" ]; then
${{ github.workspace }}/vcpkg/bootstrap-vcpkg.sh -disableMetrics
else
elif [ "$RUNNER_OS" == "Windows" ]; then
${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat -disableMetrics
fi
- name: Install asio and gtest
# Install dependencies using the appropriate triplet for the current runner operating system
run: |
if [ ${{ matrix.os }} == "ubuntu-latest" ]; then
if [ "$RUNNER_OS" == "Linux" ]; then
${{ github.workspace }}/vcpkg/vcpkg install asio:x64-linux gtest:x64-linux
else
elif [ "$RUNNER_OS" == "Windows" ]; then
${{ github.workspace }}/vcpkg/vcpkg install asio:x64-windows gtest:x64-windows
fi
Expand Down

0 comments on commit fb20800

Please sign in to comment.