From 0d6f7de0e63d33999a6301ca642ee69e81475872 Mon Sep 17 00:00:00 2001 From: Hans-Erik Floryd Date: Wed, 17 Feb 2021 16:31:25 +0100 Subject: [PATCH] Migrate to Github Actions --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .travis.yml | 8 -------- README.md | 2 +- 3 files changed, 24 insertions(+), 9 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..3062cca --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: build +on: [push, pull_request] +env: + BUILD_TYPE: Release +jobs: + build: + runs-on: ubuntu-16.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Configure + shell: bash + run: | + cmake -E make_directory $GITHUB_WORKSPACE/build + cmake -B $GITHUB_WORKSPACE/build -S $GITHUB_WORKSPACE \ + -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + shell: bash + run: | + cmake --build $GITHUB_WORKSPACE/build -j4 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dad228f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: c - -script: - - mkdir build - - pushd build - - cmake .. -DCMAKE_BUILD_TYPE=Release - - make - - popd diff --git a/README.md b/README.md index ecfb9f8..781a09c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Simple Open Source EtherCAT Slave ==== -[![Build Status](https://travis-ci.org/OpenEtherCATsociety/SOES.svg?branch=master)](https://travis-ci.org/OpenEtherCATsociety/SOES) +[![Build Status](https://github.com/OpenEtherCATsociety/SOES/workflows/build/badge.svg?branch=master)](https://github.com/OpenEtherCATsociety/SOES/actions?workflow=build) SOES (Simple OpenSource EtherCAT Slave Stack) is an opensource slave stack that is very easy to use and provides a small footprint. It is a