From b3003f02fa235a128b497ba55024bd475ecf938c Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 17 Aug 2020 14:59:23 +1000 Subject: [PATCH 1/5] Create ci.yml Initial version of htop CI using github actions. --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..10ca129e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: autogen + run: ./autogen.sh + - name: configure + run: ./configure + - name: make + run: make From c86ac5cf98427c1a917342aef13a84aa91768ae6 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 17 Aug 2020 15:16:49 +1000 Subject: [PATCH 2/5] Update ci.yml Install libncurses-dev package on the build system --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10ca129e..acc19505 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,8 @@ jobs: steps: - uses: actions/checkout@v2 + - name: prepare + run: sudo apt-get install libncurses-dev - name: autogen run: ./autogen.sh - name: configure From 6cd1615863730a64df3522855248b6332f789553 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 17 Aug 2020 15:40:47 +1000 Subject: [PATCH 3/5] Update ci.yml Attempt to fix Ubuntu dependencies, add macosx --- .github/workflows/ci.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acc19505..69ad7aec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,17 +7,23 @@ on: branches: [ master ] jobs: - build: - + build-ubuntu-latest: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - - name: prepare - run: sudo apt-get install libncurses-dev - - name: autogen - run: ./autogen.sh - - name: configure - run: ./configure - name: make - run: make + run: | + sudo apt-get install libncurses-dev + ./autogen.sh + ./configure + make + + build-macos-latest: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: make + run: | + ./autogen.sh + ./configure + make From e1f48c7c7c93736d165c0e3267ef7819cdd41a22 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 17 Aug 2020 15:48:24 +1000 Subject: [PATCH 4/5] Update ci.yml Correction to deb package name --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69ad7aec..21542cee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 - name: make run: | - sudo apt-get install libncurses-dev + sudo apt-get install libncursesw5-dev ./autogen.sh ./configure make @@ -24,6 +24,5 @@ jobs: - uses: actions/checkout@v2 - name: make run: | - ./autogen.sh ./configure make From 7fbbf25afeb76baf1186181202d6d214d7a7936b Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 17 Aug 2020 15:53:49 +1000 Subject: [PATCH 5/5] Update ci.yml Comment out MacOSX for now - seems to be missing needed aclocal/m4 toolchain components. --- .github/workflows/ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21542cee..74d0ece8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,18 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: make + - name: Build run: | sudo apt-get install libncursesw5-dev ./autogen.sh ./configure make - build-macos-latest: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - name: make - run: | - ./configure - make +# build-macos-latest: +# runs-on: macos-latest +# steps: +# - uses: actions/checkout@v2 +# - name: make +# run: | +# ./autogen.sh +# ./configure +# make