mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +00:00
Merge pull request #63 from Dushistov/github-actions
migrate to github actions
This commit is contained in:
48
.github/workflows/main.yml
vendored
Normal file
48
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: '00 02 */4 * *'
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
jobs:
|
||||
tests:
|
||||
name: Run tests
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: true
|
||||
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: jwlawson/actions-setup-cmake@v1.0
|
||||
with:
|
||||
cmake-version: '3.5.1'
|
||||
github-api-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Check versions
|
||||
run: |
|
||||
set -e
|
||||
cmake --version
|
||||
gcc --version
|
||||
echo "end of versions checking"
|
||||
shell: bash
|
||||
- name: Run tests
|
||||
run: |
|
||||
set -e
|
||||
cd $GITHUB_WORKSPACE
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DBUILD_TESTS=True ..
|
||||
make -k -j2 VERBOSE=1
|
||||
ctest --output-on-failure
|
||||
shell: bash
|
||||
49
.travis.yml
49
.travis.yml
@@ -1,49 +0,0 @@
|
||||
#
|
||||
# Available repositories are listed here:
|
||||
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
|
||||
#
|
||||
|
||||
sudo: false
|
||||
|
||||
language: cpp
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: COMPILER_VERSION=4.8
|
||||
os: linux
|
||||
compiler: g++
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- kalakris-cmake
|
||||
- ubuntu-sdk-team
|
||||
packages:
|
||||
- g++-4.8
|
||||
- cmake
|
||||
- libglib2.0-dev
|
||||
- jq
|
||||
# - env: COMPILER_VERSION=3.5
|
||||
# os: linux
|
||||
# compiler: clang++
|
||||
# addons:
|
||||
# apt:
|
||||
# sources:
|
||||
# - ubuntu-toolchain-r-test
|
||||
# - llvm-toolchain-precise-3.5
|
||||
# packages:
|
||||
# - clang-3.5
|
||||
# - cmake
|
||||
# - libglib2.0-dev
|
||||
|
||||
|
||||
before_script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- CC=$CC-${COMPILER_VERSION} CXX=$CXX-${COMPILER_VERSION} cmake -DBUILD_TESTS=True ..
|
||||
- cd ..
|
||||
|
||||
script:
|
||||
- cd build
|
||||
- make -k -j2 VERBOSE=1
|
||||
- ctest --output-on-failure
|
||||
@@ -1,5 +1,5 @@
|
||||
#+OPTIONS: ^:nil
|
||||
[[https://travis-ci.org/Dushistov/sdcv][https://travis-ci.org/Dushistov/sdcv.svg?branch=master]]
|
||||
[[https://github.com/Dushistov/sdcv/actions?query=workflow%3ACI+branch%3Amaster][https://github.com/Dushistov/sdcv/workflows/CI/badge.svg]]
|
||||
[[https://github.com/Dushistov/sdcv/blob/master/LICENSE][https://img.shields.io/badge/license-GPL%202-brightgreen.svg]]
|
||||
* How to compile and install
|
||||
#+BEGIN_SRC sh
|
||||
|
||||
Reference in New Issue
Block a user