diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-08-21 10:37:25 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-08-21 10:37:25 +0200 |
commit | d6adc2b68143b0baef5ad60f0cb0dea70c913ee0 (patch) | |
tree | 10a8f8eebb3ee5a8058d885a68773bbe82d47a32 | |
parent | 57254cdd05981a6d2c035f868316bbca2c5495f3 (diff) |
github/ci: improve ci
- split steps for readability
- fail on compiler warnings
- add whitespace check
- run on all branches
- run `make distcheck`
-rw-r--r-- | .github/workflows/ci.yml | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74d0ece8..5cb69fe3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,22 @@ name: CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [ push, pull_request ] jobs: build-ubuntu-latest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Install Dependencies + run: sudo apt-get install libncursesw5-dev + - name: Bootstrap + run: ./autogen.sh + - name: Configure + run: ./configure --enable-werror - name: Build - run: | - sudo apt-get install libncursesw5-dev - ./autogen.sh - ./configure - make + run: make + - name: Distcheck + run: make distcheck # build-macos-latest: # runs-on: macos-latest @@ -27,3 +27,12 @@ jobs: # ./autogen.sh # ./configure # make + + whitespace_check: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: check-whitespaces + run: git diff-tree --check $(git hash-object -t tree /dev/null) HEAD |