Skip to content

Commit f146a86

Browse files
committed
github action for testing
1 parent e350339 commit f146a86

File tree

2 files changed

+53
-63
lines changed

2 files changed

+53
-63
lines changed

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: ${{ matrix.name }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- name: linux-prev-release
12+
os: ubuntu-20.04
13+
env:
14+
BUILD_TYPE: Release
15+
- name: linux-latest-debug
16+
os: ubuntu-latest
17+
env:
18+
BUILD_TYPE: Debug
19+
HJSON_CXX_FLAGS: "-g -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fstack-protector-all -fsanitize=undefined -fno-sanitize-recover"
20+
- name: linux-latest-release
21+
os: ubuntu-latest
22+
env:
23+
BUILD_TYPE: Release
24+
- name: linux-strtod
25+
os: ubuntu-latest
26+
env:
27+
BUILD_TYPE: Release
28+
HJSON_NUMBER_PARSER: StrToD
29+
- name: mac-release
30+
os: macos-latest
31+
env:
32+
BUILD_TYPE: Release
33+
- name: mac-strtod
34+
os: macos-latest
35+
env:
36+
BUILD_TYPE: Release
37+
HJSON_NUMBER_PARSER: StrToD
38+
- name: windows-debug
39+
os: windows-latest
40+
env: {}
41+
- name: windows-strtod
42+
os: windows-latest
43+
env:
44+
HJSON_NUMBER_PARSER: StrToD
45+
- name: windows-charconv
46+
os: windows-latest
47+
env:
48+
HJSON_NUMBER_PARSER: CharConv
49+
env: ${{ matrix.env }}
50+
steps:
51+
- uses: actions/checkout@v4
52+
- run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DHJSON_ENABLE_TEST=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DHJSON_NUMBER_PARSER=${HJSON_NUMBER_PARSER} -DCMAKE_CXX_FLAGS="${HJSON_CXX_FLAGS}" .. && cmake --build . --target runtest
53+
shell: bash

.travis.yml

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

0 commit comments

Comments
 (0)