From b81a17674ef97345a433c6aa682143f24a6e596a Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Mon, 20 May 2024 00:37:32 +0200 Subject: [PATCH] Travis -> GitHub Actions --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 2 ++ 3 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f30a1b1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Configure + run: mkdir build && cd build && cmake -DCOMPILER=native -DCMAKE_BUILD_TYPE=Release -DNO_BOOST_GRAPH=1 .. + - name: Build + run: cmake --build build + - name: Run tests + run: cmake --build build --target test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0b67c78..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp -compiler: - - g++ -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - boost-latest - packages: - - gcc-4.9 - - g++-4.9 - - libboost1.55-all-dev - - cmake -install: - - if [ "$CXX" = "g++" ]; then export CXX="g++-4.9"; fi -script: mkdir build && cd build && cmake -DCOMPILER=native -DCMAKE_BUILD_TYPE=Release -DNO_BOOST_GRAPH=1 .. && make && make test && cd .. diff --git a/README.md b/README.md index 550c09f..004ffab 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build status](https://github.com/JohannesLorenz/sca-toolsuite/actions/workflows/build.yml/badge.svg)](https://github.com/JohannesLorenz/sca-toolsuite/actions/workflows/build.yml) + # Greetings Welcome! Thank you for considering the README file.