Skip to content

Commit

Permalink
Employ extreme path saving measures
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel97 committed Jun 16, 2020
1 parent f4a7fb8 commit a91ae03
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
path: h
- uses: actions/setup-haskell@v1.1.1
with:
ghc-version: ${{ matrix.ghc }}
Expand All @@ -32,21 +33,21 @@ jobs:
# path: ~/.cabal
# key: ${{ runner.OS }}-${{ matrix.ghc }}-cabal-0

- name: Shorten binary names
# if: ${{ runner.OS == Windows }}
shell: bash
run: sed -i -e 's/executable haskell-language-server/executable hls/' haskell-language-server.cabal
# - name: Shorten binary names
# # if: ${{ runner.OS == Windows }}
# shell: bash
# run: sed -i -e 's/executable haskell-language-server/executable hls/' haskell-language-server.cabal

- run: cabal build floskell -v2

- name: Build Server
run: cabal build exe:hls -O2 --disable-documentation -fdist-binary
run: cabal build exe:haskell-language-server -O2 --disable-documentation -fdist-binary --builddir=d

- name: Find Server Binary
id: find_server_binary
shell: bash
run: |
HLS=$(find dist-newstyle \( -name 'hls' -o -name 'hls.exe' \) -type f)
HLS=$(find dist-newstyle \( -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 @@ -61,14 +62,14 @@ jobs:

- name: Build Wrapper
if: matrix.ghc == '8.10.1'
run: cabal build exe:hls-wrapper -O2 --disable-documentation -fdist-binary
run: cabal build exe:haskell-language-server-wrapper -O2 --disable-documentation -fdist-binary --builddir=d

- name: Find Wrapper Binary
if: matrix.ghc == '8.10.1'
id: find_wrapper_binary
shell: bash
run: |
HLS_WRAPPER=$(find dist-newstyle \( -name 'hls-wrapper' -o -name 'hls-wrapper.exe' \) -type f)
HLS_WRAPPER=$(find dist-newstyle \( -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 Down

0 comments on commit a91ae03

Please sign in to comment.