Skip to content

Commit

Permalink
add osx build job
Browse files Browse the repository at this point in the history
  • Loading branch information
AminSojoudi authored and zpostfacto committed Aug 30, 2024
1 parent 20e233f commit 04f7977
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 04f7977

Please sign in to comment.