Skip to content

Commit

Permalink
Merge pull request #72 from Wolkabout/improvement_switch-to-gh-actions
Browse files Browse the repository at this point in the history
Create cmake.yml
  • Loading branch information
srdjastankovic authored Apr 7, 2021
2 parents 9f456c0 + d22e956 commit 90014c7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 54 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CMake

on: [push]

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: sudo apt update && sudo apt-get install -y libz-dev wget gcc g++ cmake libssl-dev clang-format ruby

- name: Install Unit Test toolset
run: sudo gem install ceedling

- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: ./configure

- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: make all -j$(nproc)

- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: make tests
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

0 comments on commit 90014c7

Please sign in to comment.