Skip to content

Commit 04f7977

Browse files
AminSojoudizpostfacto
authored andcommitted
add osx build job
1 parent 20e233f commit 04f7977

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

+29
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,35 @@ jobs:
8585
- name: Test connection
8686
working-directory: '${{ github.workspace }}/build/bin'
8787
#run: test_connection.exe suite-quick # Loopback throughput test not performing on github hosted runners for some reason
88+
8889
run: test_connection.exe identity quick lane_quick_queueanddrain lane_quick_priority_and_background
8990
shell: cmd
9091

92+
build-and-test-osx:
93+
name: Build And Test for OSX
94+
runs-on: macos-latest
95+
steps:
96+
- uses: actions/checkout@v3
97+
- name: Install Vcpkg
98+
run: |
99+
git clone https://github.com/Microsoft/vcpkg.git
100+
cd vcpkg
101+
./bootstrap-vcpkg.sh
102+
./vcpkg integrate install
103+
104+
- name: Configure CMake
105+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
106+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
107+
run: cmake -B ${{github.workspace}}/build
108+
-DCMAKE_BUILD_TYPE=Release
109+
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
110+
111+
- name: Build
112+
# Build the program with the given configuration
113+
run: cmake --build ${{github.workspace}}/build --config Release
114+
115+
- name: Test
116+
working-directory: ${{github.workspace}}/build
117+
# Execute tests defined by the CMake configuration.
118+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
119+
run: ctest -C Release

0 commit comments

Comments
 (0)