Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/publish-haskell/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
path: |
${{ steps.setup-hs.outputs.stack-root }}
codegen/haskell/.stack-work
key: stack-${{ hashFiles('stack.yaml.lock') }}
key: stack-${{ hashFiles('gen/haskell/stack.yaml.lock') }}
restore-keys: stack-

- name: Install protoc
Expand Down Expand Up @@ -107,4 +107,4 @@ runs:
path: |
${{ steps.setup-hs.outputs.stack-root }}
codegen/haskell/.stack-work
key: stack-${{ hashFiles('stack.yaml.lock') }}
key: stack-${{ hashFiles('gen/haskell/stack.yaml.lock') }}
39 changes: 39 additions & 0 deletions .github/actions/setup-proto-lens-protoc/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "setup proto-lens-protoc"
description: "setup proto-lens-protoc plugin (Haskell codegen)"

inputs:
ghc-version:
description: GHC used to build the plugin (9.14 does not solve yet, lens-family needs containers < 0.8)
required: false
default: 9.12.4
proto-lens-protoc-version:
description: proto-lens-protoc version installed from Hackage
required: false
default: 0.9.0.1

runs:
using: "composite"
steps:
- name: Setup Haskell
id: setup-hs
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ inputs.ghc-version }}

- name: Restore Cabal cache
uses: actions/cache/restore@v4
id: restore-cabal-store
with:
path: ${{ steps.setup-hs.outputs.cabal-store }}
key: cabal-store-ghc-${{ inputs.ghc-version }}-proto-lens-protoc-${{ inputs.proto-lens-protoc-version }}

- name: Install Haskell plugin from Hackage
shell: bash
run: cabal install proto-lens-protoc-${{ inputs.proto-lens-protoc-version }}

- name: Save Cabal cache
if: steps.restore-cabal-store.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ steps.setup-hs.outputs.cabal-store }}
key: cabal-store-ghc-${{ inputs.ghc-version }}-proto-lens-protoc-${{ inputs.proto-lens-protoc-version }}
29 changes: 0 additions & 29 deletions .github/actions/setup-protoc-hololens/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
version: 0.4.0

- name: Setup Haskell
uses: ./.github/actions/setup-protoc-hololens
uses: ./.github/actions/setup-proto-lens-protoc

- name: Install Buf from npm
run: npm install -g @bufbuild/buf
Expand Down
9 changes: 1 addition & 8 deletions gen/haskell/stack.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
resolver: lts-22.7
resolver: lts-24.60
packages: [.]

extra-deps:
- proto-lens-protobuf-types-0.7.2.0
- proto-lens-protoc-0.8.0.0
- proto-lens-setup-0.4.0.7
- ghc-source-gen-0.4.4.1
- proto-lens-runtime-0.7.0.6
47 changes: 6 additions & 41 deletions gen/haskell/stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -1,47 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files
# https://docs.haskellstack.org/en/stable/topics/lock_files

packages:
- completed:
hackage: proto-lens-protobuf-types-0.7.2.0@sha256:78f9d686aca30f1b569145b6c0d7a20f8398b5f5de601ec1c3d07ac644ea1e66,3814
pantry-tree:
sha256: dff5f67b3a437cf18a2901942be472364f7a64b8cac071f1467b227b3cc878ff
size: 1333
original:
hackage: proto-lens-protobuf-types-0.7.2.0
- completed:
hackage: proto-lens-protoc-0.8.0.0@sha256:a146ee8c9af9e445ab05651e688deb0ff849357d320657d6cea5be33cb54b960,2235
pantry-tree:
sha256: 1921e9b8f86658c8c0e73a73ee91c69e0c35d3051a241a1a06cb822ecd2f0347
size: 1218
original:
hackage: proto-lens-protoc-0.8.0.0
- completed:
hackage: proto-lens-setup-0.4.0.7@sha256:acca0b04e033ea0a017f809d91a7dbc942e025ec6bc275fa21647352722c74cc,3122
pantry-tree:
sha256: 1f3d343a5c132bb7bfe9dd15a2092ed5bc1673bf321647defdac797bdb8d8280
size: 235
original:
hackage: proto-lens-setup-0.4.0.7
- completed:
hackage: ghc-source-gen-0.4.4.1@sha256:6029be9ea2fae3ddb3a7a7e132df9b09aa32dc0cf3e31a5cd3d420d220823078,4236
pantry-tree:
sha256: e807f86b86f66bbadf1d930487e4dfe40d121fd39b66e0fce16f9374992f31b4
size: 3250
original:
hackage: ghc-source-gen-0.4.4.1
- completed:
hackage: proto-lens-runtime-0.7.0.6@sha256:b12a2731424121ea337c5705088dd4c83db461c280c962749298503f2643ca24,3057
pantry-tree:
sha256: f70c8ec121f62902b4ce98f41dbb54126c81a2ff07c85df313782ae334463d00
size: 168
original:
hackage: proto-lens-runtime-0.7.0.6
packages: []
snapshots:
- completed:
sha256: 7b975b104cb3dbf0c297dfd01f936a4d2ee523241dd0b1ae960522b833fe3027
size: 714096
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/7.yaml
original: lts-22.7
sha256: 5851c9fcb30f350a167916d8873bdd53c149ce73ceb9637f4caba0cd554c2af6
size: 732465
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/60.yaml
original: lts-24.60
9 changes: 5 additions & 4 deletions gen/haskell/utxorpc.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ build-type: Simple
author: TxPipe <registrant@txpipe.io>
maintainer: TxPipe <registrant@txpipe.io>
Dominic Mayhew <dominic.j.mayhew@gmail.com>
Mateusz Galazyn <mateusz.galazyn@blockpqr.io>
extra-source-files:
README.md

Expand Down Expand Up @@ -69,9 +70,9 @@ library
hs-source-dirs:
.
build-depends:
base >=4.7 && <5
, proto-lens >= 0.7.1 && < 0.8
base >= 4.18 && < 5
, proto-lens >= 0.7.1.7 && < 0.8
-- >= 0.7.2 required as it contains support for `FieldMask`
, proto-lens-protobuf-types >= 0.7.2 && < 0.8
, proto-lens-runtime >= 0.7.0.6
, proto-lens-protobuf-types >= 0.7.2.3 && < 0.8
, proto-lens-runtime >= 0.7.0.8 && < 0.8
default-language: Haskell2010
Loading