Skip to content

Commit 7c893a2

Browse files
committed
Use hs-bindgen to generate bindings
1 parent c79e8bb commit 7c893a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+475666
-30
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,44 +57,60 @@ jobs:
5757
- { os: ubuntu-latest, shell: bash }
5858
- { os: macos-latest, shell: bash }
5959
ghc-version: ["9.2", "9.4", "9.6", "9.8", "9.10", "9.12"]
60-
cabal-version: ["3.12"]
60+
cabal-version: ["3.16"]
6161
botan-version: ["3.9.0"]
6262
include:
6363
- sys: { os: ubuntu-latest, shell: bash }
6464
ghc-version: "9.6"
65-
cabal-version: "3.12"
65+
cabal-version: "3.16"
6666
botan-version: "3.0.0"
6767
- sys: { os: ubuntu-latest, shell: bash }
6868
ghc-version: "9.6"
69-
cabal-version: "3.12"
69+
cabal-version: "3.16"
70+
botan-version: "3.1.0"
71+
- sys: { os: ubuntu-latest, shell: bash }
72+
ghc-version: "9.6"
73+
cabal-version: "3.16"
7074
botan-version: "3.1.1"
7175
- sys: { os: ubuntu-latest, shell: bash }
7276
ghc-version: "9.6"
73-
cabal-version: "3.12"
77+
cabal-version: "3.16"
7478
botan-version: "3.2.0"
7579
- sys: { os: ubuntu-latest, shell: bash }
7680
ghc-version: "9.6"
77-
cabal-version: "3.12"
81+
cabal-version: "3.16"
7882
botan-version: "3.3.0"
7983
- sys: { os: ubuntu-latest, shell: bash }
8084
ghc-version: "9.6"
81-
cabal-version: "3.12"
85+
cabal-version: "3.16"
8286
botan-version: "3.4.0"
8387
- sys: { os: ubuntu-latest, shell: bash }
8488
ghc-version: "9.6"
85-
cabal-version: "3.12"
89+
cabal-version: "3.16"
8690
botan-version: "3.5.0"
8791
- sys: { os: ubuntu-latest, shell: bash }
8892
ghc-version: "9.6"
89-
cabal-version: "3.12"
93+
cabal-version: "3.16"
94+
botan-version: "3.6.0"
95+
- sys: { os: ubuntu-latest, shell: bash }
96+
ghc-version: "9.6"
97+
cabal-version: "3.16"
9098
botan-version: "3.6.1"
9199
- sys: { os: ubuntu-latest, shell: bash }
92100
ghc-version: "9.6"
93-
cabal-version: "3.12"
101+
cabal-version: "3.16"
102+
botan-version: "3.7.0"
103+
- sys: { os: ubuntu-latest, shell: bash }
104+
ghc-version: "9.6"
105+
cabal-version: "3.16"
94106
botan-version: "3.7.1"
95107
- sys: { os: ubuntu-latest, shell: bash }
96108
ghc-version: "9.6"
97-
cabal-version: "3.12"
109+
cabal-version: "3.16"
110+
botan-version: "3.8.0"
111+
- sys: { os: ubuntu-latest, shell: bash }
112+
ghc-version: "9.6"
113+
cabal-version: "3.16"
98114
botan-version: "3.8.1"
99115

100116
steps:
@@ -200,15 +216,19 @@ jobs:
200216
run: |
201217
cabal test all -j1 --test-show-details=direct
202218
203-
- name: 🛠️ Setup cabal-docspec (Linux)
204-
if: ${{ runner.os == 'Linux' && !startsWith(matrix.ghc-version, '9.2') && !startsWith(matrix.ghc-version, '9.4') }}
205-
uses: jorisdral/actions/setup-cabal-docspec@main
219+
# TODO: temporarily disabled because cabal-docspec does not support
220+
# cabal-version:3.14 and higher, which botan-bindings now requires. See
221+
# issue #?.
222+
#
223+
# - name: 🛠️ Setup cabal-docspec (Linux)
224+
# if: ${{ runner.os == 'Linux' && !startsWith(matrix.ghc-version, '9.2') && !startsWith(matrix.ghc-version, '9.4') }}
225+
# uses: jorisdral/actions/setup-cabal-docspec@main
206226

207-
- name: 🧪 Test with cabal-docspec (Linux)
208-
if: ${{ runner.os == 'Linux' && !startsWith(matrix.ghc-version, '9.2') && !startsWith(matrix.ghc-version, '9.4') }}
209-
run: ./scripts/test-cabal-docspec.sh
210-
env:
211-
SKIP_CABAL_BUILD: true
227+
# - name: 🧪 Test with cabal-docspec (Linux)
228+
# if: ${{ runner.os == 'Linux' && !startsWith(matrix.ghc-version, '9.2') && !startsWith(matrix.ghc-version, '9.4') }}
229+
# run: ./scripts/test-cabal-docspec.sh
230+
# env:
231+
# SKIP_CABAL_BUILD: true
212232

213233
################################################################################
214234
# Lint with cabal-gild
@@ -249,7 +269,7 @@ jobs:
249269
uses: haskell-actions/setup@v2
250270
with:
251271
ghc-version: "9.6"
252-
cabal-version: "3.12"
272+
cabal-version: "3.16"
253273
cabal-update: false
254274

255275
- name: 🎗️ Lint with cabal
@@ -291,11 +311,11 @@ jobs:
291311
with:
292312
stylish-haskell-version: "0.15.1.0"
293313
ghc-version: "9.10"
294-
cabal-version: "3.12"
314+
cabal-version: "3.16"
295315
# The index-state is fixed to enable caching and ensure that the version
296316
# regardless of the current state of Hackage head.
297317
# If you want a newer version of stylish-haskell, use a more recent time.
298-
hackage-index-state: "2025-09-15T11:44:03Z"
318+
hackage-index-state: "2025-12-08T00:00:00Z"
299319

300320
- name: 🎗️ Lint with stylish-haskell
301321
run: ./scripts/format-stylish-haskell.sh && git diff --exit-code

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defaults:
2121

2222
env:
2323
ghc-version: "9.6"
24-
cabal-version: "3.12"
24+
cabal-version: "3.16"
2525

2626
jobs:
2727
################################################################################

botan-bindings/KnownVersions.cfg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[ Version 3 9 0
2+
, Version 3 8 1
3+
, Version 3 8 0
4+
, Version 3 7 1
5+
, Version 3 7 0
6+
, Version 3 6 1
7+
, Version 3 6 0
8+
, Version 3 5 0
9+
, Version 3 4 0
10+
, Version 3 3 0
11+
, Version 3 2 0
12+
, Version 3 1 1
13+
, Version 3 1 0
14+
, Version 3 0 0
15+
]

0 commit comments

Comments
 (0)