mirror of https://github.com/xzeldon/htop.git
github/ci: improve ci
- split steps for readability - fail on compiler warnings - add whitespace check - run on all branches - run `make distcheck`
This commit is contained in:
parent
57254cdd05
commit
d6adc2b681
|
@ -1,22 +1,22 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [ push, pull_request ]
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-ubuntu-latest:
|
build-ubuntu-latest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Build
|
||||||
run: |
|
run: make
|
||||||
sudo apt-get install libncursesw5-dev
|
- name: Distcheck
|
||||||
./autogen.sh
|
run: make distcheck
|
||||||
./configure
|
|
||||||
make
|
|
||||||
|
|
||||||
# build-macos-latest:
|
# build-macos-latest:
|
||||||
# runs-on: macos-latest
|
# runs-on: macos-latest
|
||||||
|
@ -27,3 +27,12 @@ jobs:
|
||||||
# ./autogen.sh
|
# ./autogen.sh
|
||||||
# ./configure
|
# ./configure
|
||||||
# make
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue