Migrate to Github Actions

This commit is contained in:
Hans-Erik Floryd 2021-02-17 11:54:41 +01:00
parent 61668c71b7
commit 44fa68a5a9
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
*~
/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
[![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
========

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