Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #1170

Merged
merged 3 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-18.04, ubuntu-20.04]

steps:
- uses: actions/checkout@v2

- name: "setup linux build environment"
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo apt install -y protobuf-compiler libprotobuf-dev libutempter-dev autoconf automake

- name: "setup macos build environment"
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install protobuf automake

- name: "generate build scripts"
run: ./autogen.sh

- name: "configure"
run: ./configure --enable-compile-warnings=error --enable-examples

- name: "build"
ezzieyguywuf marked this conversation as resolved.
Show resolved Hide resolved
run: make V=1

- name: "test"
run: make V=1 check
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/mobile-shell/mosh.svg?branch=master)](https://travis-ci.org/mobile-shell/mosh)
ezzieyguywuf marked this conversation as resolved.
Show resolved Hide resolved
[![ci](https://github.com/mobile-shell/mosh/actions/workflows/ci.yml/badge.svg)](https://github.com/mobile-shell/mosh/actions/workflows/ci.yml)

Mosh: the mobile shell
======================
Expand Down
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ AC_ARG_ENABLE([compile-warnings],
PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations"
;;
error)
WARNING_CXXFLAGS="-Wall -Werror"
# remove -Wno-c++17-extensions once protocolbuffers/protobuf#9181 is
# resolved
WARNING_CXXFLAGS="-Wall -Werror -Wno-c++17-extensions"
ezzieyguywuf marked this conversation as resolved.
Show resolved Hide resolved
PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations"
;;
distcheck)
Expand Down