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:
|
||||
push:
|
||||
|
|
@ -6,7 +6,7 @@ on:
|
|||
- main
|
||||
|
||||
jobs:
|
||||
compile-fish:
|
||||
compile-bc:
|
||||
runs-on: archlinux-latest
|
||||
container:
|
||||
image: archlinux:latest
|
||||
|
|
@ -14,24 +14,25 @@ jobs:
|
|||
steps:
|
||||
- name: install packages and prepare source
|
||||
run: |
|
||||
pacman -Sy --noconfirm wget base-devel cmake git jq rust python-sphinx glibc libgcc pcre2
|
||||
wget https://github.com/fish-shell/fish-shell/releases/download/4.5.0/fish-4.5.0.tar.xz
|
||||
tar -xf fish-4.5.0.tar.xz
|
||||
pacman -Sy --noconfirm wget base-devel ed readline
|
||||
wget https://ftp.gnu.org/gnu/bc/bc-1.08.2.tar.gz
|
||||
tar -xf bc-1.08.2.tar.gz
|
||||
|
||||
- name: compile fish
|
||||
- name: compile bc
|
||||
run: |
|
||||
cd fish-4.5.0
|
||||
cmake -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 \
|
||||
-Wno-dev
|
||||
make -C build VERBOSE=1
|
||||
cmake --install build
|
||||
cd bc-1.08.2
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--with-readline
|
||||
make -j1
|
||||
make install
|
||||
|
||||
- name: run fish
|
||||
|
||||
- name: run bc
|
||||
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