2023-07-23 15:35:37 +09:00
|
|
|
name: decnum
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
disabled:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-18 18:19:51 +09:00
|
|
|
uses: actions/checkout@v4
|
2023-07-23 15:35:37 +09:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Install packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y automake autoconf libtool
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
autoreconf -i
|
|
|
|
./configure \
|
|
|
|
--disable-docs \
|
|
|
|
--disable-maintainer-mode \
|
|
|
|
--disable-decnum
|
|
|
|
make -j"$(nproc)"
|
|
|
|
file ./jq
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
diff <(echo 100000000000000000000 | ./jq) <(echo 1e+20)
|
|
|
|
git diff --exit-code
|