Merge pull request #480 from hefloryd/feature/gh-actions
Migrate to Github Actions
This commit is contained in:
commit
d548e9907d
|
@ -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
|
|
@ -1,4 +1,4 @@
|
||||||
build*
|
build*/
|
||||||
install
|
install
|
||||||
*~
|
*~
|
||||||
/doc/latex
|
/doc/latex
|
||||||
|
|
14
.travis.yml
14
.travis.yml
|
@ -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
|
|
|
@ -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
|
||||||
========
|
========
|
||||||
|
|
10
appveyor.yml
10
appveyor.yml
|
@ -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
|
|
Loading…
Reference in New Issue