Skip to content

Commit

Permalink
Try going into the parent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel97 committed Jun 15, 2020
1 parent a626ffc commit 4219d51
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Builds

on:
push:
branches:
- github-action-builds
release:
types: [created]
jobs:
Expand Down Expand Up @@ -37,13 +34,13 @@ jobs:


- name: Build Server
run: cabal build exe:haskell-language-server -O2 --builddir=b
run: cabal build exe:haskell-language-server -O2 --builddir=../b --disable-documentation

- name: Find Server Binary
id: find_server_binary
shell: bash
run: |
HLS=$(find b \( -name 'haskell-language-server' -o -name 'haskell-language-server.exe' \) -type f)
HLS=$(find ../b \( -name 'haskell-language-server' -o -name 'haskell-language-server.exe' \) -type f)
echo ::set-output name=hls_binary::$HLS
- name: Upload Server Binary
Expand All @@ -58,14 +55,14 @@ jobs:

- name: Build Wrapper
if: matrix.ghc == '8.10.1'
run: cabal build exe:haskell-language-server-wrapper -O2 --builddir=b
run: cabal build exe:haskell-language-server-wrapper -O2 --builddir=../b --disable-documentation -v

- name: Find Wrapper Binary
if: matrix.ghc == '8.10.1'
id: find_wrapper_binary
shell: bash
run: |
HLS_WRAPPER=$(find b \( -name 'haskell-language-server-wrapper' -o -name 'haskell-language-server-wrapper.exe' \) -type f)
HLS_WRAPPER=$(find ../b \( -name 'haskell-language-server-wrapper' -o -name 'haskell-language-server-wrapper.exe' \) -type f)
echo ::set-output name=hls_wrapper_binary::$HLS_WRAPPER
- name: Upload Wrapper
Expand All @@ -78,3 +75,4 @@ jobs:
asset_path: ${{ steps.find_wrapper_binary.outputs.hls_wrapper_binary }}
asset_name: haskell-language-server-wrapper-${{ runner.OS }}
asset_content_type: application/octet-stream

0 comments on commit 4219d51

Please sign in to comment.