mirror of
https://github.com/Aloxaf/fzf-tab.git
synced 2026-09-10 07:26:16 -04:00
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
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:
parent
7fed01afba
commit
0ef51dcab1
20
.github/workflows/linux.yaml
vendored
20
.github/workflows/linux.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/macos.yaml
vendored
2
.github/workflows/macos.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: test on macOS
|
||||
name: macOS compability
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
4
.github/workflows/zsh.yaml
vendored
4
.github/workflows/zsh.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue