Skip to content

Commit a4c62e6

Browse files
authored
Merge pull request #101 from haskell-cryptography/build-type-simple
Remove Setup.hs
2 parents 3b0f9e8 + 9c35147 commit a4c62e6

File tree

3 files changed

+26
-162
lines changed

3 files changed

+26
-162
lines changed

.github/workflows/haskell.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ 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-
1814
ghc:
1915
- "8.0.2"
2016
- "8.2.2"
@@ -26,10 +22,11 @@ jobs:
2622
- "9.2.8"
2723
- "9.4.8"
2824
- "9.6.6"
29-
- "9.8.2"
25+
- "9.8.4"
3026
- "9.10.1"
27+
- "9.12.1"
3128
# FIXME: Add windows-latest back to CI once it is passing.
32-
os: [ubuntu-latest, macos-latest]
29+
os: [ubuntu-latest]
3330

3431
# Action fails to install GHC < 8.10 on OSX with a generic error
3532
# messsage:
@@ -40,19 +37,25 @@ jobs:
4037
#
4138
# Warning: Couldn't figure out LLVM version!
4239
# Make sure you have installed LLVM between [9 and 13)
43-
exclude:
44-
- {ghc: "8.0.2", os: "macos-latest"}
45-
- {ghc: "8.2.2", os: "macos-latest"}
46-
- {ghc: "8.4.4", os: "macos-latest"}
47-
- {ghc: "8.6.5", os: "macos-latest"}
48-
- {ghc: "8.8.4", os: "macos-latest"}
49-
- {ghc: "8.10.7", os: "macos-latest"}
50-
- {ghc: "9.0.2", os: "macos-latest"}
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"}
5154
env:
5255
# OpenSSL is installed in a non-standard location in MacOS. See
5356
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-latest-Readme.md
5457
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') || '' }}
55-
58+
5659
# FIXME: this is arguably a bug, and pkg-config should return the right values!
5760
LD_LIBRARY_PATH: ${{ (matrix.os != 'windows-latest' && '/usr/local/lib') || '' }}
5861

@@ -75,7 +78,7 @@ jobs:
7578
automake `
7679
libtool `
7780
make
78-
81+
7982
# this seems to break something. It _must_ come after the pacman setup
8083
# above. It appears as if PATHEXT is set _after_ ghcup install ghc/cabal, and
8184
# as such we'd need pacman.exe instead.
@@ -127,7 +130,7 @@ jobs:
127130
shell: bash
128131
run: echo '${{ steps.cabal-store.outputs.cabal-store }}'
129132

130-
- uses: actions/checkout@v2
133+
- uses: actions/checkout@v4
131134

132135
- name: "[PowerShell] Add build script path"
133136
if: runner.os == 'Windows'
@@ -173,7 +176,7 @@ jobs:
173176
cat dist-newstyle/cache/plan.json | jq -r '."install-plan"[].id' | sort | uniq > dependencies.txt
174177
175178
- name: Cache Cabal store
176-
uses: actions/cache@v2
179+
uses: actions/cache@v4
177180
with:
178181
path: ${{ steps.cabal-store.outputs.cabal-store }}
179182
key: cache-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}

HsOpenSSL.cabal

Lines changed: 5 additions & 8 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.7
13+
Version: 0.11.7.9
1414
License: PublicDomain
1515
License-File: COPYING
1616
Author: Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -33,11 +33,12 @@ Tested-With:
3333
|| ==9.6.6
3434
|| ==9.8.1
3535
|| ==9.10.1
36-
Build-Type: Custom
37-
Extra-Source-Files:
36+
Build-Type: Simple
37+
Extra-Doc-Files:
3838
AUTHORS
3939
ChangeLog
4040
README.md
41+
Extra-Source-Files:
4142
cbits/HsOpenSSL.h
4243
cbits/mutex.h
4344
examples/Makefile
@@ -50,7 +51,7 @@ Extra-Source-Files:
5051

5152
Source-Repository head
5253
Type: git
53-
Location: git://github.com/haskell-cryptography/HsOpenSSL.git
54+
Location: https://github.com/haskell-cryptography/HsOpenSSL.git
5455

5556
Flag fast-bignum
5657
Description:
@@ -78,10 +79,6 @@ Flag use-pkg-config
7879
Manual:
7980
True
8081

81-
Custom-setup
82-
setup-depends: Cabal >= 1.12 && < 4,
83-
base >= 4.8 && < 5
84-
8582
Library
8683
Build-Depends:
8784
base >= 4.8 && < 5,

Setup.hs

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

0 commit comments

Comments
 (0)