From 032b4317464636c9da358c208694d2783a1f8b95 Mon Sep 17 00:00:00 2001 From: cat Date: Thu, 19 Feb 2026 17:57:24 +0300 Subject: [PATCH] compile fish --- .forgejo/workflows/test.yml | 39 ++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 010c066..a934083 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,4 +1,4 @@ -name: compile zsh +name: compile fish on: push: @@ -6,7 +6,7 @@ on: - main jobs: - compile-zsh: + compile-fish: runs-on: archlinux-latest container: image: archlinux:latest @@ -15,20 +15,27 @@ jobs: - name: install packages and prepare source run: | - pacman -Sy wget base-devel pcre2 libcap gdbm yodl --noconfirm - wget https://www.zsh.org/pub/zsh-5.9.tar.xz - tar -xvf zsh-5.9.tar.xz + pacman -Sy wget base-devel cmake git jq rust python-sphinx glibc libgcc pcre2 --noconfirm + wget https://github.com/fish-shell/fish-shell/releases/download/4.5.0/fish-4.5.0.tar.xz + tar -xvf fish-4.5.0.tar.xz - - name: compile zsh + - name: compile fish run: | - cd zsh-5.9 - ./configure --prefix=/usr \ - --sysconfdir=/etc/zsh \ - --enable-etcdir=/etc/zsh \ - --enable-cap \ - --enable-gdbm - make -j$(nproc) - make install + cd fish-4.5.0 + local cmake_options=( + -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 + -W no-dev + ) + cmake "${cmake_options[@]}" + make -C build VERBOSE=1 + cmake --install build - - name: run zsh - run: zsh \ No newline at end of file + + - name: run fish + run: fish \ No newline at end of file