From 863fe39363ca642ea34f0a52322bd6dcdc956fe8 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Dec 2022 11:01:48 +0200 Subject: [PATCH 32/32] CI: Add build with tcc See osdn #46236 Signed-off-by: Marko Lindqvist --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ scripts/ci-build.sh | 23 +++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87b0ed28ef..9feb36a611 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -233,3 +233,31 @@ jobs: - name: build shell: bash run: ./scripts/ci-build.sh clang_debug + tcc: + runs-on: ubuntu-22.04 + steps: + - name: check out Freeciv + uses: actions/checkout@v3 + - name: install dependencies + run: | + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \ + tcc \ + gettext \ + libgtk-3-dev \ + libgtk-4-dev \ + libcurl4-openssl-dev \ + libtool \ + automake \ + autoconf \ + autotools-dev \ + language-pack-en \ + python3.10 \ + liblzma-dev \ + libicu-dev \ + libsqlite3-dev \ + libmysqlclient-dev \ + unixodbc-dev + - name: build + shell: bash + run: ./scripts/ci-build.sh tcc diff --git a/scripts/ci-build.sh b/scripts/ci-build.sh index ddce57ffe8..5cb9f47fe3 100755 --- a/scripts/ci-build.sh +++ b/scripts/ci-build.sh @@ -145,6 +145,29 @@ make -s -j$(nproc) make install ;; +tcc) + +mkdir build +cd build +../autogen.sh \ + CC="tcc" \ + LD="tcc" \ + --enable-debug \ + --enable-client=gtk3.22,stub,gtk4 \ + --enable-fcmp=cli,gtk3,gtk4 \ + --enable-fcdb=sqlite3,mysql,odbc \ + --disable-ruledit \ + --disable-sdl-mixer \ + --prefix=${HOME}/freeciv/tcc \ + || (let config_exit_status=$? \ + && echo "Config exit status: $config_exit_status" \ + && cat config.log \ + && exit $config_exit_status) +make -s -j$(nproc) +make install +echo "Freeciv build successful!" +;; + *) # Fetch S3_0 in the background for the ruleset upgrade test git fetch --no-tags --quiet https://github.com/freeciv/freeciv.git S3_0:S3_0 & -- 2.35.1