From 3b870fb9bc47a99524add155e5362118127f1ab8 Mon Sep 17 00:00:00 2001 From: Amin Sojoudi Date: Mon, 12 Aug 2024 06:02:44 +0330 Subject: [PATCH] add osx build job --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a17d8d95..2cf1ca4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,6 +85,35 @@ jobs: - name: Test connection working-directory: '${{ github.workspace }}/build/bin' #run: test_connection.exe suite-quick # Loopback throughput test not performing on github hosted runners for some reason + run: test_connection.exe identity quick lane_quick_queueanddrain lane_quick_priority_and_background shell: cmd + build-and-test-osx: + name: Build And Test for OSX + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Install Vcpkg + run: | + git clone https://github.com/Microsoft/vcpkg.git + cd vcpkg + ./bootstrap-vcpkg.sh + ./vcpkg integrate install + + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: cmake -B ${{github.workspace}}/build + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake + + - name: Build + # Build the program with the given configuration + run: cmake --build ${{github.workspace}}/build --config Release + + - name: Test + working-directory: ${{github.workspace}}/build + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C Release