Skip to content

Commit acef06b

Browse files
committed
Remove appveyor and just use github actions
1 parent d8abdc2 commit acef06b

File tree

3 files changed

+141
-69
lines changed

3 files changed

+141
-69
lines changed

.github/workflows/ci.yml

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build-linux:
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
platform: [x64]
15+
config: [Debug]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Install Ninja
22+
run: sudo apt-get update && sudo apt-get install -y ninja-build
23+
24+
- name: Configure CMake
25+
run: cmake -H. -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja
26+
27+
- name: Build
28+
run: ninja -C build
29+
30+
- name: Test
31+
run: ctest --test-dir build
32+
33+
build-windows-2015:
34+
runs-on: windows-2016
35+
strategy:
36+
matrix:
37+
platform: [x86, x64]
38+
config: [Debug]
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v3
43+
44+
- name: Setup MSVC (x86)
45+
if: matrix.platform == 'x86'
46+
uses: ilammy/msvc-dev-cmd@v1
47+
with:
48+
arch: x86
49+
toolset: 14.0
50+
51+
- name: Setup MSVC (x64)
52+
if: matrix.platform == 'x64'
53+
uses: ilammy/msvc-dev-cmd@v1
54+
with:
55+
arch: x64
56+
toolset: 14.0
57+
58+
- name: Install Ninja
59+
run: choco install ninja
60+
61+
- name: Configure CMake
62+
run: cmake -H. -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja
63+
64+
- name: Build
65+
run: ninja -C build
66+
67+
- name: Test
68+
run: ctest --test-dir build
69+
70+
build-windows-2017:
71+
runs-on: windows-2019
72+
strategy:
73+
matrix:
74+
platform: [x86, x64]
75+
config: [Debug]
76+
77+
steps:
78+
- name: Checkout repository
79+
uses: actions/checkout@v3
80+
81+
- name: Setup MSVC (x86)
82+
if: matrix.platform == 'x86'
83+
uses: ilammy/msvc-dev-cmd@v1
84+
with:
85+
arch: x86
86+
toolset: 14.1
87+
88+
- name: Setup MSVC (x64)
89+
if: matrix.platform == 'x64'
90+
uses: ilammy/msvc-dev-cmd@v1
91+
with:
92+
arch: x64
93+
toolset: 14.1
94+
95+
- name: Install Ninja
96+
run: choco install ninja
97+
98+
- name: Configure CMake
99+
run: cmake -H. -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja
100+
101+
- name: Build
102+
run: ninja -C build
103+
104+
- name: Test
105+
run: ctest --test-dir build
106+
107+
build-windows-2019:
108+
runs-on: windows-2019
109+
strategy:
110+
matrix:
111+
platform: [x86, x64]
112+
config: [Debug]
113+
114+
steps:
115+
- name: Checkout repository
116+
uses: actions/checkout@v3
117+
118+
- name: Setup MSVC (x86)
119+
if: matrix.platform == 'x86'
120+
uses: ilammy/msvc-dev-cmd@v1
121+
with:
122+
arch: x86
123+
124+
- name: Setup MSVC (x64)
125+
if: matrix.platform == 'x64'
126+
uses: ilammy/msvc-dev-cmd@v1
127+
with:
128+
arch: x64
129+
130+
- name: Install Ninja
131+
run: choco install ninja
132+
133+
- name: Configure CMake
134+
run: cmake -H. -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja
135+
136+
- name: Build
137+
run: ninja -C build
138+
139+
- name: Test
140+
run: ctest --test-dir build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# **Structurize your JSON**
22

3-
[![Build status](https://ci.appveyor.com/api/projects/status/mduab0w8u12atfbu?svg=true)](https://ci.appveyor.com/project/jorgen36373/json-struct)
3+
[![CI](https://github.com/jorgen/json_struct/actions/workflows/ci.yml/badge.svg)](https://github.com/jorgen/json_struct/actions/workflows/ci.yml)
44
[![ClusterFuzzLite PR fuzzing](https://github.com/jorgen/json_struct/actions/workflows/cflite_pr.yml/badge.svg)](https://github.com/jorgen/json_struct/actions/workflows/cflite_pr.yml)
55

66
json_struct is a single-header C++ library that parses JSON to structs/classes and serializes structs/classes back to JSON. With support for relaxed parsing rules, it's also excellent for configuration files and human-editable data formats.

appveyor.yml

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

0 commit comments

Comments
 (0)