Skip to content

Commit

Permalink
Merge pull request #133 from lolepezy/switch-to-8.10.7
Browse files Browse the repository at this point in the history
Switch to 8.10.7
  • Loading branch information
lolepezy authored Oct 19, 2022
2 parents f4e7cfe + 20302fd commit 6b08031
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: '8.10.4'
ghc-version: '8.10.7'
enable-stack: true
stack-version: 'latest'
- name: Cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: '8.10.4'
ghc-version: '8.10.7'
enable-stack: true
stack-version: 'latest'
-
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile.static-builder
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM utdemir/ghc-musl:v20-ghc8104 as rpki-prover-builder
# FROM utdemir/ghc-musl:v20-ghc8104 as rpki-prover-builder
FROM utdemir/ghc-musl:v24-ghc8107 as rpki-prover-builder

RUN apk add --update --no-cache expat-dev lmdb-dev lmdb expat-static lmdb

# There's no statically linked version of LMDB, so we build it from the sources here
RUN wget https://git.openldap.org/openldap/openldap/-/archive/LMDB_0.9.29/openldap-LMDB_0.9.29.tar.gz && \
tar xzf openldap-LMDB_0.9.29.tar.gz && \
cd openldap-LMDB_0.9.29/libraries/liblmdb && \
RUN wget https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_0.9.29.tar.gz && \
tar xzf LMDB_0.9.29.tar.gz && \
cd lmdb-LMDB_0.9.29/libraries/liblmdb && \
make && cp liblmdb.a /usr/lib

5 changes: 1 addition & 4 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ tests:
- -threaded
- -rtsopts
- -with-rtsopts=-N
# - -static
- -O2
# cc-options: -static
# ld-options: -static -pthread
- -O2
dependencies:
- rpki-prover
- QuickCheck
Expand Down
3 changes: 0 additions & 3 deletions src/RPKI/Orphans/Serialise.hs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ deriving instance (Ord a, Serialise a) => Serialise (NESet a)

deriving instance (Ord a, Serialise a, Serialise b) => Serialise (MonoidalMap a b)

deriving instance (Serialise a, Serialise b) => Serialise (These a b)


instance (Serialise CPid) where
encode (CPid i) = encode i
decode = CPid <$> decode
Expand Down
3 changes: 2 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# resolver: https://example.com/snapshots/2018-01-01.yaml
# resolver: lts-16.31
# resolver: nightly-2022-03-20
resolver: lts-18.6
resolver: lts-18.28
# resolver: lts-18.6

# User packages to be built.
# Various formats can be used as shown in the example below.
Expand Down

0 comments on commit 6b08031

Please sign in to comment.