Skip to content

Commit

Permalink
Use cabal for protoc plugin to avoid overlap with build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
domMayhew committed Feb 15, 2024
1 parent 1c95332 commit 71e0e7c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/actions/setup-protoc-hololens/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,22 @@ runs:
id: setup-hs
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true
ghc-version: 9.6.4

- name: Restore Stack Root
- name: Restore Cabal cache
uses: actions/cache/restore@v4
id: restore-stack
id: restore-cabal-store
with:
path: ${{ steps.setup-hs.outputs.stack-root }}
key: stack-protoc
path: ${{ steps.setup-hs.outputs.cabal-store }}
key: cabal-store

- name: Install Haskell plugin from Hackage
shell: bash
working-directory: gen/haskell
run: stack install proto-lens-protoc-0.8.0.0
run: cabal install proto-lens-protoc-0.8.0.0

- name: Save Stack cache
if: steps.restore-stack.outputs.cache-hit != 'true'
- name: Save Cabal cache
if: steps.restore-cabal-store.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ steps.setup-hs.outputs.stack-root }}
key: stack-protoc
path: ${{ steps.setup-hs.outputs.cabal-store }}
key: cabal-store

0 comments on commit 71e0e7c

Please sign in to comment.