Skip to content

Commit 5250cb5

Browse files
committed
added winows ci
1 parent 36200cb commit 5250cb5

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/windows.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: windows
2+
3+
on: [ push, pull_request ]
4+
5+
env:
6+
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
7+
8+
jobs:
9+
windows-msvc:
10+
runs-on: windows-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
fetch-depth: 0
17+
- name: Export GitHub Actions cache environment variables
18+
uses: actions/github-script@v7
19+
with:
20+
script: |
21+
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
22+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
23+
- uses: ilammy/msvc-dev-cmd@v1
24+
- name: Compile
25+
run: |
26+
cmake -B build -DORYX_CRT_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release
27+
cmake --build build
28+
- name: Run tests
29+
run: |
30+
./build/kvdb-cpp_tests --success

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ![C++](https://img.shields.io/badge/c++-%2300599C.svg?style=for-the-badge&logo=c%2B%2B&logoColor=white) kvdb-cpp
22

33
[![linux](https://github.com/BestITUserEUW/kvdb-cpp/actions/workflows/linux.yaml/badge.svg)](https://github.com/BestITUserEUW/kvdb-cpp/actions/workflows/linux.yaml)
4+
[![linux](https://github.com/BestITUserEUW/kvdb-cpp/actions/workflows/windows.yaml/badge.svg)](https://github.com/BestITUserEUW/kvdb-cpp/actions/workflows/windows.yaml)
45

56
Orm Key Value Database
67

0 commit comments

Comments
 (0)