From 4ace2e050b054d2ff603e8dbc6a341bb5bb873b3 Mon Sep 17 00:00:00 2001 From: cat Date: Thu, 19 Feb 2026 18:11:53 +0300 Subject: [PATCH] compile bc --- .forgejo/workflows/test.yml | 39 +++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index d70fa45..35030c7 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,4 +1,4 @@ -name: compile fish +name: compile bc on: push: @@ -6,7 +6,7 @@ on: - main jobs: - compile-fish: + compile-bc: runs-on: archlinux-latest container: image: archlinux:latest @@ -14,24 +14,25 @@ jobs: steps: - name: install packages and prepare source run: | - pacman -Sy --noconfirm wget base-devel cmake git jq rust python-sphinx glibc libgcc pcre2 - wget https://github.com/fish-shell/fish-shell/releases/download/4.5.0/fish-4.5.0.tar.xz - tar -xf fish-4.5.0.tar.xz + pacman -Sy --noconfirm wget base-devel ed readline + wget https://ftp.gnu.org/gnu/bc/bc-1.08.2.tar.gz + tar -xf bc-1.08.2.tar.gz - - name: compile fish + - name: compile bc run: | - cd fish-4.5.0 - cmake -B build \ - -D CMAKE_INSTALL_PREFIX=/usr \ - -D CMAKE_INSTALL_SYSCONFDIR=/etc \ - -D CMAKE_BUILD_TYPE=Release \ - -D WITH_DOCS=ON \ - -D FISH_USE_SYSTEM_PCRE2=ON \ - -D WITH_MESSAGE_LOCALIZATION=ON \ - -Wno-dev - make -C build VERBOSE=1 - cmake --install build + cd bc-1.08.2 + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-readline + make -j1 + make install - - name: run fish + + - name: run bc run: | - /usr/bin/fish --version \ No newline at end of file + echo "2+2 = " + echo "2+2" | bc + echo "2+2*2 = " + echo "2+2*2" | bc \ No newline at end of file