workflowtest/.forgejo/workflows/test.yml
cat 4ace2e050b
All checks were successful
compile bc / compile-bc (push) Successful in 1m38s
compile bc
2026-02-19 18:11:53 +03:00

38 lines
No EOL
786 B
YAML

name: compile bc
on:
push:
branches:
- main
jobs:
compile-bc:
runs-on: archlinux-latest
container:
image: archlinux:latest
steps:
- name: install packages and prepare source
run: |
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 bc
run: |
cd bc-1.08.2
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-readline
make -j1
make install
- name: run bc
run: |
echo "2+2 = "
echo "2+2" | bc
echo "2+2*2 = "
echo "2+2*2" | bc