Merge pull request #480 from hefloryd/feature/gh-actions

Migrate to Github Actions
This commit is contained in:
nakarlsson 2021-02-17 15:39:27 +01:00 committed by GitHub
commit d548e9907d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 27 deletions

31
.github/workflows/build.yml vendored Normal file
View File

@ -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

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
build* build*/
install install
*~ *~
/doc/latex /doc/latex

View File

@ -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

View File

@ -1,6 +1,5 @@
# Simple Open EtherCAT Master Library # 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://github.com/OpenEtherCATsociety/SOEM/workflows/build/badge.svg?branch=master)](https://github.com/OpenEtherCATsociety/SOEM/actions?workflow=build)
[![Build status](https://ci.appveyor.com/api/projects/status/bqgirjsxog9k1odf?svg=true)](https://ci.appveyor.com/project/hefloryd/soem-5kq8b)
BUILDING BUILDING
======== ========

View File

@ -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