This commit is contained in:
parent
13e8813ea8
commit
4ace2e050b
1 changed files with 20 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: compile fish
|
name: compile bc
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile-fish:
|
compile-bc:
|
||||||
runs-on: archlinux-latest
|
runs-on: archlinux-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
|
|
@ -14,24 +14,25 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: install packages and prepare source
|
- name: install packages and prepare source
|
||||||
run: |
|
run: |
|
||||||
pacman -Sy --noconfirm wget base-devel cmake git jq rust python-sphinx glibc libgcc pcre2
|
pacman -Sy --noconfirm wget base-devel ed readline
|
||||||
wget https://github.com/fish-shell/fish-shell/releases/download/4.5.0/fish-4.5.0.tar.xz
|
wget https://ftp.gnu.org/gnu/bc/bc-1.08.2.tar.gz
|
||||||
tar -xf fish-4.5.0.tar.xz
|
tar -xf bc-1.08.2.tar.gz
|
||||||
|
|
||||||
- name: compile fish
|
- name: compile bc
|
||||||
run: |
|
run: |
|
||||||
cd fish-4.5.0
|
cd bc-1.08.2
|
||||||
cmake -B build \
|
./configure \
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
--prefix=/usr \
|
||||||
-D CMAKE_INSTALL_SYSCONFDIR=/etc \
|
--mandir=/usr/share/man \
|
||||||
-D CMAKE_BUILD_TYPE=Release \
|
--infodir=/usr/share/info \
|
||||||
-D WITH_DOCS=ON \
|
--with-readline
|
||||||
-D FISH_USE_SYSTEM_PCRE2=ON \
|
make -j1
|
||||||
-D WITH_MESSAGE_LOCALIZATION=ON \
|
make install
|
||||||
-Wno-dev
|
|
||||||
make -C build VERBOSE=1
|
|
||||||
cmake --install build
|
|
||||||
|
|
||||||
- name: run fish
|
|
||||||
|
- name: run bc
|
||||||
run: |
|
run: |
|
||||||
/usr/bin/fish --version
|
echo "2+2 = "
|
||||||
|
echo "2+2" | bc
|
||||||
|
echo "2+2*2 = "
|
||||||
|
echo "2+2*2" | bc
|
||||||
Loading…
Add table
Add a link
Reference in a new issue