Skip to content

Commit

Permalink
Merge pull request #1628 from BenBE/build-unsupported
Browse files Browse the repository at this point in the history
Build unsupported platform
  • Loading branch information
BenBE authored Mar 4, 2025
2 parents 682c5e3 + b0d75f7 commit 1aa9508
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ jobs:
- name: Build
run: make -k

build-unsupported-latest-gcc:
# build as if we were on an unsupported platform
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt-get install --no-install-recommends libncursesw5-dev libtinfo-dev libgpm-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: ./configure --host=`uname -m`-none --enable-werror --enable-unicode || ( cat config.log; exit 1; )
- name: Build
run: make -k

build-ubuntu-latest-clang-analyzer:
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ fi
AC_MSG_RESULT([
${PACKAGE_NAME} ${VERSION}
platform: $my_htop_platform
platform: $my_htop_platform ($host_os)
os-release file: $with_os_release
(Linux) proc directory: $with_proc
(Linux) openvz: $enable_openvz
Expand Down
2 changes: 2 additions & 0 deletions unsupported/UnsupportedMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/

#include "config.h" // IWYU pragma: keep

#include "UnsupportedMachine.h"

#include <stdlib.h>
Expand Down

0 comments on commit 1aa9508

Please sign in to comment.