This commit is contained in:
parent
6f1410ae47
commit
032b431746
1 changed files with 23 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: compile zsh
|
name: compile fish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile-zsh:
|
compile-fish:
|
||||||
runs-on: archlinux-latest
|
runs-on: archlinux-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
|
|
@ -15,20 +15,27 @@ jobs:
|
||||||
|
|
||||||
- name: install packages and prepare source
|
- name: install packages and prepare source
|
||||||
run: |
|
run: |
|
||||||
pacman -Sy wget base-devel pcre2 libcap gdbm yodl --noconfirm
|
pacman -Sy wget base-devel cmake git jq rust python-sphinx glibc libgcc pcre2 --noconfirm
|
||||||
wget https://www.zsh.org/pub/zsh-5.9.tar.xz
|
wget https://github.com/fish-shell/fish-shell/releases/download/4.5.0/fish-4.5.0.tar.xz
|
||||||
tar -xvf zsh-5.9.tar.xz
|
tar -xvf fish-4.5.0.tar.xz
|
||||||
|
|
||||||
- name: compile zsh
|
- name: compile fish
|
||||||
run: |
|
run: |
|
||||||
cd zsh-5.9
|
cd fish-4.5.0
|
||||||
./configure --prefix=/usr \
|
local cmake_options=(
|
||||||
--sysconfdir=/etc/zsh \
|
-B build
|
||||||
--enable-etcdir=/etc/zsh \
|
-D CMAKE_INSTALL_PREFIX=/usr
|
||||||
--enable-cap \
|
-D CMAKE_INSTALL_SYSCONFDIR=/etc
|
||||||
--enable-gdbm
|
-D CMAKE_BUILD_TYPE=Release
|
||||||
make -j$(nproc)
|
-D WITH_DOCS=ON
|
||||||
make install
|
-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
|
- name: run fish
|
||||||
|
run: fish
|
||||||
Loading…
Add table
Add a link
Reference in a new issue