Skip to content

Commit b822867

Browse files
authored
replaces travis with github actions (#12)
Also updates catch 2 to 3.3.2
1 parent 1816a75 commit b822867

File tree

8 files changed

+20597
-14638
lines changed

8 files changed

+20597
-14638
lines changed

.github/workflows/cmake.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CMake
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11+
BUILD_TYPE: Release
12+
13+
14+
jobs:
15+
build:
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest, macos-latest]
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Configure CMake
25+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
26+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
27+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
28+
29+
- name: Build
30+
# Build your program with the given configuration
31+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
32+
33+
- name: Test
34+
working-directory: ${{github.workspace}}/build
35+
# Execute tests defined by the CMake configuration.
36+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
37+
run: ctest -C ${{env.BUILD_TYPE}}
38+

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
21
build/
3-
4-
\.vscode/
2+
.vs/
3+
.vscode/
4+
out/

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Valve Data Format (.vdf) Reader and Writer in C++
2-
[![Build Status](https://travis-ci.org/TinyTinni/ValveFileVDF.svg?branch=master)](https://travis-ci.org/TinyTinni/ValveFileVDF)
3-
[![Build status](https://ci.appveyor.com/api/projects/status/380441mkwkfvh4tj?svg=true)](https://ci.appveyor.com/project/TinyTinni/valvefilevdf)
2+
3+
[![CMake](https://github.com/TinyTinni/ValveFileVDF/actions/workflows/cmake.yml/badge.svg)](https://github.com/TinyTinni/ValveFileVDF/actions/workflows/cmake.yml)
44

55
Valve uses its own JSON-like data format: [KeyValue, also known as vdf.](https://developer.valvesoftware.com/wiki/KeyValues)
66
e.g. in game manifest files or as SteamCMD output.

appveyor.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ set (CMAKE_CXX_STANDARD 14)
3939
set(SRCS
4040
"main.cpp"
4141
"vdf_parser_test.cpp"
42+
"catch.cpp"
4243
"../Readme.md")
4344

4445
add_executable(tests "../vdf_parser.hpp" ${SRCS})

0 commit comments

Comments
 (0)