diff options
author | itchyny <itchyny@cybozu.co.jp> | 2023-07-23 15:35:37 +0900 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-07-24 11:53:51 -0500 |
commit | 5300fbda5802f5d422980818b0fcc51b0fb1979c (patch) | |
tree | f039b2e0c471f2872361c2d30d79c3b02bf35ca6 /.github | |
parent | c4d5ba954d81fbdedd00dce4e8ebcb9be5177152 (diff) |
Add decnum workflow to test building without decNumber support
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/decnum.yml | 32 |
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 |