mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-06 00:53:00 +08:00
Merge pull request #480 from hefloryd/feature/gh-actions
Migrate to Github Actions
This commit is contained in:
31
.github/workflows/build.yml
vendored
Normal file
31
.github/workflows/build.yml
vendored
Normal 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
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
build*
|
||||
build*/
|
||||
install
|
||||
*~
|
||||
/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
|
||||
[](https://travis-ci.org/OpenEtherCATsociety/SOEM)
|
||||
[](https://ci.appveyor.com/project/hefloryd/soem-5kq8b)
|
||||
[](https://github.com/OpenEtherCATsociety/SOEM/actions?workflow=build)
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user