Skip to content

Commit 0f5c45b

Browse files
authored
Merge pull request #35 from cbeck88/use-github-actions-for-ci
add github actions ci.yml file
2 parents 02618b7 + 0d0c174 commit 0f5c45b

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
# See docu here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-branches
7+
# it seems pretty similar to .gitignore
8+
paths:
9+
- '!**.md'
10+
- '**'
11+
pull_request:
12+
paths:
13+
- '!**.md'
14+
- '**'
15+
16+
jobs:
17+
# builds and tests c++ code
18+
build-and-test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: install boost, gcc, clang
23+
run: sudo apt-get install libboost1.83-dev libboost1.83-tools-dev clang gcc
24+
- name: print versions
25+
run: gcc --version && clang --version
26+
- name: cat test
27+
run: ls -al && cat run_tests.sh
28+
- name: test gcc
29+
run: ./run_tests.sh --toolset=gcc
30+
- name: test clang
31+
run: ./run_tests.sh --toolset=clang

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# visit_struct
22

3-
[![Build Status](https://travis-ci.org/cbeck88/visit_struct.svg?branch=master)](http://travis-ci.org/cbeck88/visit_struct)
4-
[![Appveyor status](https://ci.appveyor.com/api/projects/status/6ksqg7es938cttn2/branch/master?svg=true)](https://ci.appveyor.com/project/cbeck88/visit_struct)
3+
[![Build Status](https://github.com/cbeck88/visit_struct/actions/workflows/ci.yml/badge.svg)](http://travis-ci.org/cbeck88/visit_struct)
4+
55
[![Boost licensed](https://img.shields.io/badge/license-Boost-blue.svg)](./LICENSE)
66

77
A header-only library providing **structure visitors** for C++11 and C++14.

0 commit comments

Comments
 (0)