fix: unable to build binary module on some new systems (#472)
Some checks are pending
Linux compability / test (archlinux:latest) (push) Waiting to run
Linux compability / test (ubuntu:latest) (push) Waiting to run
macOS compability / test (push) Waiting to run
Zsh compability / test (5.3.1) (push) Waiting to run
Zsh compability / test (5.4.2) (push) Waiting to run
Zsh compability / test (5.5.1) (push) Waiting to run
Zsh compability / test (5.6.2) (push) Waiting to run
Zsh compability / test (5.7.1) (push) Waiting to run
Zsh compability / test (5.8) (push) Waiting to run
Zsh compability / test (5.9) (push) Waiting to run

* fix: unable to build binary module on some new systems

* ci: test on archlinux
This commit is contained in:
Aloxaf 2024-09-25 18:14:12 +08:00 committed by GitHub
parent 7fed01afba
commit 0ef51dcab1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 8 deletions

View file

@ -1,4 +1,4 @@
name: test on linux
name: Linux compability
on:
push:
@ -10,18 +10,28 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: ["ubuntu:latest", "archlinux:latest"]
container:
image: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install zsh
run: sudo apt-get install -y zsh
- name: install dependencies
run: |
if [ "${{ matrix.os }}" = "ubuntu:latest" ]; then
apt-get update
apt-get install -y zsh git curl build-essential autoconf libncurses-dev
elif [ "${{ matrix.os }}" = "archlinux:latest" ]; then
pacman -Syu --noconfirm
pacman -S --noconfirm zsh base-devel git
fi
- name: test completion
run: cd test && zsh -f runtests.zsh fzftab.ztst

View file

@ -1,4 +1,4 @@
name: test on macOS
name: macOS compability
on:
push:

View file

@ -1,4 +1,4 @@
name: test on different zsh versions
name: Zsh compability
on:
push:
@ -32,7 +32,7 @@ jobs:
fetch-depth: 1
- name: install dependencies
run: apt update && apt-get install -y git build-essential autoconf libncurses-dev
run: apt update && apt-get install -y git curl build-essential autoconf libncurses-dev
- name: test completion
run: cd test && zsh -f runtests.zsh fzftab.ztst

View file

@ -22,6 +22,14 @@ ln -sf $PWD/Src/fzftab.mdd ./zsh/$zsh_version/Src/Modules/
# build zsh
cd -q ./zsh/$zsh_version
git checkout -- .
[[ $zsh_version != "5.9" ]] || {
curl -s https://github.com/zsh-users/zsh/commit/4c89849c98172c951a9def3690e8647dae76308f.patch | git apply --exclude=ChangeLog -
curl -s https://github.com/zsh-users/zsh/commit/ab4d62eb975a4c4c51dd35822665050e2ddc6918.patch | git apply --exclude=ChangeLog -
}
[[ -f ./configure ]] || ./Util/preconfig
[[ -f ./Makefile ]] || ./configure --disable-gdbm --disable-pcre --without-tcsetpgrp --prefix=/tmp/zsh-fzf-tab-module ${bundle:+DL_EXT=bundle}
make -j$nproc