From 44fa68a5a9c3cb232ab9f2309f8c71b87b9bc3e7 Mon Sep 17 00:00:00 2001 From: Hans-Erik Floryd Date: Wed, 17 Feb 2021 11:54:41 +0100 Subject: [PATCH] Migrate to Github Actions --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 2 +- .travis.yml | 14 -------------- README.md | 3 +-- appveyor.yml | 10 ---------- 5 files changed, 33 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..06c0f55 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: build +on: [push, pull_request] +env: + BUILD_TYPE: Release +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-20.04 + - ubuntu-18.04 + - ubuntu-16.04 + - macos-latest + - windows-latest + 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 --target install diff --git a/.gitignore b/.gitignore index a438fd9..b4bbe2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build* +build*/ install *~ /doc/latex diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4e4218b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -jobs: - include: - - dist: xenial - - dist: bionic - - os: osx - -language: c - -script: - - mkdir build - - pushd build - - cmake .. -DCMAKE_BUILD_TYPE=Release - - make install - - popd diff --git a/README.md b/README.md index e9e5cd6..aca9d90 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Simple Open EtherCAT Master Library -[![Build Status](https://travis-ci.org/OpenEtherCATsociety/SOEM.svg?branch=master)](https://travis-ci.org/OpenEtherCATsociety/SOEM) -[![Build status](https://ci.appveyor.com/api/projects/status/bqgirjsxog9k1odf?svg=true)](https://ci.appveyor.com/project/hefloryd/soem-5kq8b) +[![Build Status](https://github.com/OpenEtherCATsociety/SOEM/workflows/build/badge.svg?branch=master)](https://github.com/OpenEtherCATsociety/SOEM/actions?workflow=build) BUILDING ======== diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 32acdb1..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: "{build}" - -install: - - cmd: '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86' - -build_script: - - cmd: mkdir build - - cmd: cd build - - cmd: cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release - - cmd: nmake install