Skip to content

Commit 7de3de8

Browse files
committed
Use hs-bindgen for generated bindings
1 parent c79e8bb commit 7de3de8

Some content is hidden

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

74 files changed

+514495
-32
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
#
3636
# * Build and test with all combinations of OS/GHC/Cabal, but with a fixed
3737
# Botan version, preferably the latest version which is currently
38-
# Botan-3.9.0.
38+
# Botan-3.10.0.
3939
#
4040
# * Build and test with all Botan versions, but with a fixed OS/GHC/Cabal
4141
# combination, preferably Linux/GHC-9.6/Cabal-3.12
@@ -57,45 +57,65 @@ 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"]
61-
botan-version: ["3.9.0"]
60+
cabal-version: ["3.16"]
61+
botan-version: ["3.10.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.14"
98114
botan-version: "3.8.1"
115+
- sys: { os: ubuntu-latest, shell: bash }
116+
ghc-version: "9.6"
117+
cabal-version: "3.16"
118+
botan-version: "3.9.0"
99119

100120
steps:
101121
- name: 📥 Checkout repository
@@ -200,15 +220,17 @@ jobs:
200220
run: |
201221
cabal test all -j1 --test-show-details=direct
202222
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
223+
# TODO: temporarily disabled
224+
#
225+
# - name: 🛠️ Setup cabal-docspec (Linux)
226+
# if: ${{ runner.os == 'Linux' && !startsWith(matrix.ghc-version, '9.2') && !startsWith(matrix.ghc-version, '9.4') }}
227+
# uses: jorisdral/actions/setup-cabal-docspec@main
206228

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
229+
# - name: 🧪 Test with cabal-docspec (Linux)
230+
# if: ${{ runner.os == 'Linux' && !startsWith(matrix.ghc-version, '9.2') && !startsWith(matrix.ghc-version, '9.4') }}
231+
# run: ./scripts/test-cabal-docspec.sh
232+
# env:
233+
# SKIP_CABAL_BUILD: true
212234

213235
################################################################################
214236
# Lint with cabal-gild
@@ -249,7 +271,7 @@ jobs:
249271
uses: haskell-actions/setup@v2
250272
with:
251273
ghc-version: "9.6"
252-
cabal-version: "3.12"
274+
cabal-version: "3.16"
253275
cabal-update: false
254276

255277
- name: 🎗️ Lint with cabal
@@ -291,11 +313,11 @@ jobs:
291313
with:
292314
stylish-haskell-version: "0.15.1.0"
293315
ghc-version: "9.10"
294-
cabal-version: "3.12"
316+
cabal-version: "3.16"
295317
# The index-state is fixed to enable caching and ensure that the version
296318
# regardless of the current state of Hackage head.
297319
# If you want a newer version of stylish-haskell, use a more recent time.
298-
hackage-index-state: "2025-09-15T11:44:03Z"
320+
hackage-index-state: "2025-12-08T00:00:00Z"
299321

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

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
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
################################################################################
@@ -54,7 +54,7 @@ jobs:
5454
# wrong with the setup-botan action. Maybe it's compiling too many things?
5555
timeout-minutes: 30
5656
with:
57-
botan-version: 3.9.0
57+
botan-version: 3.10.0
5858

5959
- name: 🛠️ Configure
6060
run: |

botan-bindings/KnownVersions.cfg

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

0 commit comments

Comments
 (0)