Skip to content

Merge pull request #66 from sorru94/prepare-1.1.2 #164

Merge pull request #66 from sorru94/prepare-1.1.2

Merge pull request #66 from sorru94/prepare-1.1.2 #164

Workflow file for this run

#
# This file is part of Astarte.
#
# Copyright 2021 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Build
on:
# Run when pushing to stable branches
push:
branches:
- 'master'
- 'release-*'
# Run on branch/tag creation
create:
# Run on pull requests
pull_request:
jobs:
build:
strategy:
matrix:
os: [20.04, 18.04, 16.04]
runs-on: ubuntu-latest
container: ubuntu:${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: deps
run: |
apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get -y install cmake openssl libssl-dev libmosquittopp-dev qtbase5-dev gcc g++
- name: Build env information
run: |
cat /etc/os-release
apt show qt5-default
g++ --version
- name: Configure CMake
run: |
mkdir -p build
cd build
cmake .. -DENABLE_WERROR=ON
- name: Build
run: cmake --build build