Skip to content

Commit e9e603c

Browse files
committed
Merge branch 'master' of github.com:haskell-cryptography/HsOpenSSL
2 parents 3c4d4ea + a4c62e6 commit e9e603c

File tree

3 files changed

+74
-160
lines changed

3 files changed

+74
-160
lines changed

.github/workflows/haskell.yml

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,59 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
# Add more elements to this list to run multiple instances of the build in CI. Increasing the
15-
# number instances is a good way to trigger flaky build failures
16-
n: [1]
17-
18-
ghc: ["8.10.7"]
19-
os: [ubuntu-latest, macos-latest, windows-latest]
20-
14+
ghc:
15+
- "8.0.2"
16+
- "8.2.2"
17+
- "8.4.4"
18+
- "8.6.5"
19+
- "8.8.4"
20+
- "8.10.7"
21+
- "9.0.2"
22+
- "9.2.8"
23+
- "9.4.8"
24+
- "9.6.6"
25+
- "9.8.4"
26+
- "9.10.1"
27+
- "9.12.1"
28+
# FIXME: Add windows-latest back to CI once it is passing.
29+
os: [ubuntu-latest]
30+
31+
# Action fails to install GHC < 8.10 on OSX with a generic error
32+
# messsage:
33+
#
34+
# Error: All install methods for ghc 8.0.2 failed
35+
#
36+
# On the other hand, 8.10 and 9.0 fail due to LLVM:
37+
#
38+
# Warning: Couldn't figure out LLVM version!
39+
# Make sure you have installed LLVM between [9 and 13)
40+
include:
41+
- {ghc: "8.0.2" , os: "macos-13"}
42+
- {ghc: "8.2.2" , os: "macos-13"}
43+
- {ghc: "8.4.4" , os: "macos-13"}
44+
- {ghc: "8.6.5" , os: "macos-13"}
45+
- {ghc: "8.8.4" , os: "macos-13"}
46+
- {ghc: "8.10.7", os: "macos-13"}
47+
- {ghc: "9.0.2" , os: "macos-13"}
48+
- {ghc: "9.2.8" , os: "macos-latest"}
49+
- {ghc: "9.4.8" , os: "macos-latest"}
50+
- {ghc: "9.6.6" , os: "macos-latest"}
51+
- {ghc: "9.8.4" , os: "macos-latest"}
52+
- {ghc: "9.10.1", os: "macos-latest"}
53+
- {ghc: "9.12.1", os: "macos-latest"}
2154
env:
2255
# OpenSSL is installed in a non-standard location in MacOS. See
2356
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-latest-Readme.md
2457
PKG_CONFIG_PATH: ${{ (matrix.os == 'macos-latest' && '/usr/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig') || (matrix.os == 'ubuntu-latest' && '/usr/lib/pkgconfig:/usr/local/lib/pkgconfig') || '' }}
25-
58+
2659
# FIXME: this is arguably a bug, and pkg-config should return the right values!
2760
LD_LIBRARY_PATH: ${{ (matrix.os != 'windows-latest' && '/usr/local/lib') || '' }}
2861

2962
steps:
63+
- uses: haskell-actions/setup@v2
64+
with:
65+
ghc-version: ${{ matrix.ghc }}
66+
3067
- name: "WIN: Install System Dependencies via pacman (msys2)"
3168
if: runner.os == 'Windows'
3269
run: |
@@ -41,11 +78,12 @@ jobs:
4178
automake `
4279
libtool `
4380
make
44-
81+
4582
# this seems to break something. It _must_ come after the pacman setup
4683
# above. It appears as if PATHEXT is set _after_ ghcup install ghc/cabal, and
4784
# as such we'd need pacman.exe instead.
48-
- name: Setup Haskell
85+
- name: "WIN: Setup Haskell"
86+
if: runner.os == 'Windows'
4987
run: |
5088
# Use GHCUP to manage ghc/cabal
5189
ghcup install ghc --set ${{ matrix.ghc }}
@@ -92,7 +130,7 @@ jobs:
92130
shell: bash
93131
run: echo '${{ steps.cabal-store.outputs.cabal-store }}'
94132

95-
- uses: actions/checkout@v2
133+
- uses: actions/checkout@v4
96134

97135
- name: "[PowerShell] Add build script path"
98136
if: runner.os == 'Windows'
@@ -138,7 +176,7 @@ jobs:
138176
cat dist-newstyle/cache/plan.json | jq -r '."install-plan"[].id' | sort | uniq > dependencies.txt
139177
140178
- name: Cache Cabal store
141-
uses: actions/cache@v2
179+
uses: actions/cache@v4
142180
with:
143181
path: ${{ steps.cabal-store.outputs.cabal-store }}
144182
key: cache-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}

HsOpenSSL.cabal

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Description:
1010
systems and stable. You may also be interested in the @tls@ package,
1111
<http://hackage.haskell.org/package/tls>, which is a pure Haskell
1212
implementation of SSL.
13-
Version: 0.11.7.8
13+
Version: 0.11.7.9
1414
License: PublicDomain
1515
License-File: COPYING
1616
Author: Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -21,12 +21,24 @@ Bug-Reports: https://github.com/haskell-cryptography/HsOpenSSL/issues
2121
Category: Cryptography
2222
Cabal-Version: 1.12
2323
Tested-With:
24-
GHC==8.8.1, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3
25-
Build-Type: Custom
26-
Extra-Source-Files:
24+
GHC ==8.0.2
25+
|| ==8.2.2
26+
|| ==8.4.4
27+
|| ==8.6.5
28+
|| ==8.8.4
29+
|| ==8.10.7
30+
|| ==9.0.2
31+
|| ==9.2.8
32+
|| ==9.4.8
33+
|| ==9.6.6
34+
|| ==9.8.1
35+
|| ==9.10.1
36+
Build-Type: Simple
37+
Extra-Doc-Files:
2738
AUTHORS
2839
ChangeLog
2940
README.md
41+
Extra-Source-Files:
3042
cbits/HsOpenSSL.h
3143
cbits/mutex.h
3244
examples/Makefile
@@ -39,7 +51,7 @@ Extra-Source-Files:
3951

4052
Source-Repository head
4153
Type: git
42-
Location: git://github.com/haskell-cryptography/HsOpenSSL.git
54+
Location: https://github.com/haskell-cryptography/HsOpenSSL.git
4355

4456
Flag fast-bignum
4557
Description:
@@ -67,10 +79,6 @@ Flag use-pkg-config
6779
Manual:
6880
True
6981

70-
Custom-setup
71-
setup-depends: Cabal >= 1.12 && < 4,
72-
base >= 4.8 && < 5
73-
7482
Library
7583
Build-Depends:
7684
base >= 4.8 && < 5,
@@ -88,11 +96,15 @@ Library
8896
Build-Depends: integer-gmp >= 1.0.0 && < 1.1.0
8997

9098
if os(darwin) && flag(homebrew-openssl)
91-
Include-Dirs: /usr/local/opt/openssl/include
92-
Extra-Lib-Dirs: /usr/local/opt/openssl/lib
99+
if arch(aarch64)
100+
Include-Dirs: /opt/homebrew/opt/openssl/include
101+
Extra-Lib-Dirs: /opt/homebrew/opt/openssl/lib
102+
else
103+
Include-Dirs: /usr/local/opt/openssl/include
104+
Extra-Lib-Dirs: /usr/local/opt/openssl/lib
93105

94106
if os(darwin) && flag(macports-openssl)
95-
Include-Dirs: /opt/local/include
107+
Include-Dirs: /opt/local/include
96108
Extra-Lib-Dirs: /opt/local/lib
97109

98110
if flag(use-pkg-config)

Setup.hs

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)