Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 92410f8

Browse files
committed
Add macOS and Windows build actions
1 parent 7b35adf commit 92410f8

File tree

4 files changed

+76
-5
lines changed

4 files changed

+76
-5
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CMake
1+
name: CMake (Ubuntu Linux)
22

33
on: [push, pull_request]
44

@@ -12,8 +12,6 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
with:
16-
submodules: recursive
1715

1816
- name: Create build directory
1917
run: mkdir build

.github/workflows/cmake-macos.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CMake (macOS)
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
BUILD_TYPE: RelWithDebInfo
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
18+
- name: Install libraries
19+
run: brew install web-eid/gtest/gtest
20+
21+
- name: Create build directory
22+
run: mkdir build
23+
24+
- name: Configure CMake
25+
working-directory: ${{github.workspace}}/build
26+
run: cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
27+
28+
- name: Build
29+
working-directory: ${{github.workspace}}/build
30+
run: cmake --build . --config ${BUILD_TYPE}
31+
32+
- name: Test
33+
working-directory: ${{github.workspace}}/build
34+
run: ctest -V -C ${BUILD_TYPE}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CMake (Windows)
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
BUILD_TYPE: RelWithDebInfo
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
18+
- name: Prepare vcpkg and libraries
19+
uses: lukka/run-vcpkg@v6
20+
with:
21+
vcpkgArguments: gtest:x64-windows
22+
vcpkgTriplet: x64-windows
23+
vcpkgDirectory: ${{runner.workspace}}/vcpkg/
24+
vcpkgGitCommitId: ec6fe06e8da05a8157dc8581fa96b36b571c1bd5
25+
26+
- name: Create build directory
27+
run: mkdir build
28+
29+
- name: Configure CMake
30+
working-directory: ${{github.workspace}}/build
31+
run: cmake -A x64 "-DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" ..
32+
33+
- name: Build
34+
working-directory: ${{github.workspace}}/build
35+
run: cmake --build . --config ${env:BUILD_TYPE}
36+
37+
- name: Test
38+
working-directory: ${{github.workspace}}/build
39+
run: ctest -V -C ${env:BUILD_TYPE}

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# supported CodeQL languages.
1111
# ******** NOTE ********
1212

13-
name: "CodeQL"
13+
name: CodeQL code analysis
1414

1515
on:
1616
push:
@@ -19,7 +19,7 @@ on:
1919
# The branches below must be a subset of the branches above
2020
branches: [ main ]
2121
schedule:
22-
- cron: '17 18 * * 5'
22+
- cron: '18 17 * * 4'
2323

2424
jobs:
2525
analyze:

0 commit comments

Comments
 (0)