Skip to content

Commit 88a74ab

Browse files
committed
Migrate to Github Actions
1 parent f3a3a69 commit 88a74ab

File tree

3 files changed

+32
-20
lines changed

3 files changed

+32
-20
lines changed

.github/workflows/build.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
on: [push, pull_request]
3+
env:
4+
BUILD_TYPE: Release
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
submodules: true
12+
13+
- name: Install dependencies
14+
run: sudo apt-get install doxygen
15+
16+
- name: Configure
17+
shell: bash
18+
run: |
19+
cmake -E make_directory ${{github.workspace}}/build
20+
cmake -B ${{github.workspace}}/build -S ${{github.workspace}} \
21+
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
22+
23+
- name: Build
24+
shell: bash
25+
run: |
26+
cmake --build ${{github.workspace}}/build --target all docs install -j4
27+
28+
- name: Test
29+
shell: bash
30+
run: |
31+
cmake --build ${{github.workspace}}/build --target check

.travis.yml

-19
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
c-open: CANopen stack
22
=====================
3-
[![Build Status](https://travis-ci.org/rtlabs-com/c-open.svg?branch=master)](https://travis-ci.org/rtlabs-com/c-open)
3+
[![Build Status](https://github.com/rtlabs-com/c-open/workflows/build/badge.svg?branch=master)](https://github.com/rtlabs-com/c-open/actions?workflow=build)
44

55
This repository contains a CANopen stack for both master and
66
slaves. The stack implements most of CiA 301 and 305 (LSS). The stack

0 commit comments

Comments
 (0)