Skip to content

Commit

Permalink
fix action ref
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Feb 8, 2024
1 parent c49bfdd commit 085983a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/actions/setup-protoc-hololens/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'setup protoc hololens'
description: 'setup protoc hololens plugin (Haskell)'

runs:
using: 'composite'
steps:

- name: Setup Haskell
id: setup-hs
uses: haskell-actions/setup@v2
with:
ghc-version: 9.6.4

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

- name: Install Haskell plugin from Hackage
shell: bash
run: cabal install proto-lens-protoc-0.8.0.0

- name: Save Cabal cache
uses: actions/cache/save@v4
with:
path: ${{ steps.setup-hs.outputs.cabal-store }}
key: cabal-protoc
17 changes: 10 additions & 7 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ jobs:
with:
crate: protoc-gen-tonic

- name: Setup Haskell
id: setup-hs
uses: haskell-actions/setup@v2
with:
ghc-version: 9.6.4
# - name: Setup Haskell
# id: setup-hs
# uses: haskell-actions/setup@v2
# with:
# ghc-version: 9.6.4

- name: Install Haskell plugin from Hackage
run: cabal install proto-lens-protoc-0.8.0.0
# - name: Install Haskell plugin from Hackage
# run: cabal install proto-lens-protoc-0.8.0.0

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

- name: Install Buf from npm
run: npm install -g @bufbuild/buf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
with:
name: codegen

- uses: ./.github/actions/rust-release.yml
- uses: ./.github/actions/rust-release

0 comments on commit 085983a

Please sign in to comment.