summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authoritchyny <itchyny@cybozu.co.jp>2023-07-23 15:35:37 +0900
committerNico Williams <nico@cryptonector.com>2023-07-24 11:53:51 -0500
commit5300fbda5802f5d422980818b0fcc51b0fb1979c (patch)
treef039b2e0c471f2872361c2d30d79c3b02bf35ca6 /.github
parentc4d5ba954d81fbdedd00dce4e8ebcb9be5177152 (diff)
Add decnum workflow to test building without decNumber support
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/decnum.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/decnum.yml b/.github/workflows/decnum.yml
new file mode 100644
index 00000000..acba4e98
--- /dev/null
+++ b/.github/workflows/decnum.yml
@@ -0,0 +1,32 @@
+name: decnum
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+jobs:
+ disabled:
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Clone repository
+ uses: actions/checkout@v3
+ 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