From 0d0c174d3409c8c415dda292eae85195c48782a2 Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Thu, 17 Jul 2025 12:29:28 -0600 Subject: [PATCH] add github actions ci.yml file --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dc889b4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Continuous Integration + +on: + push: + branches: [ "master" ] + # See docu here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-branches + # it seems pretty similar to .gitignore + paths: + - '!**.md' + - '**' + pull_request: + paths: + - '!**.md' + - '**' + +jobs: + # builds and tests c++ code + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install boost, gcc, clang + run: sudo apt-get install libboost1.83-dev libboost1.83-tools-dev clang gcc + - name: print versions + run: gcc --version && clang --version + - name: cat test + run: ls -al && cat run_tests.sh + - name: test gcc + run: ./run_tests.sh --toolset=gcc + - name: test clang + run: ./run_tests.sh --toolset=clang diff --git a/README.md b/README.md index ac9e579..ebe8120 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # visit_struct -[![Build Status](https://travis-ci.org/cbeck88/visit_struct.svg?branch=master)](http://travis-ci.org/cbeck88/visit_struct) -[![Appveyor status](https://ci.appveyor.com/api/projects/status/6ksqg7es938cttn2/branch/master?svg=true)](https://ci.appveyor.com/project/cbeck88/visit_struct) +[![Build Status](https://github.com/cbeck88/visit_struct/actions/workflows/ci.yml/badge.svg)](http://travis-ci.org/cbeck88/visit_struct) + [![Boost licensed](https://img.shields.io/badge/license-Boost-blue.svg)](./LICENSE) A header-only library providing **structure visitors** for C++11 and C++14.