8181 retention-days : 90
8282
8383 build-lsp-windows :
84- name : Build jl4-lsp - Windows x64
84+ name : Build jl4-lsp + jl4-cli - Windows x64
8585 runs-on : windows-latest
8686 steps :
8787 - uses : actions/checkout@v4
@@ -101,7 +101,7 @@ jobs:
101101 run : |
102102 cabal update
103103 cabal configure --disable-tests --disable-documentation
104- cabal build exe:jl4-lsp --dry-run
104+ cabal build exe:jl4-lsp exe:jl4-cli --dry-run
105105
106106 - name : Restore cached dependencies
107107 uses : actions/cache/restore@v4
@@ -116,7 +116,7 @@ jobs:
116116 - name : Install dependencies
117117 if : steps.cache.outputs.cache-hit != 'true'
118118 shell : bash
119- run : cabal build exe:jl4-lsp --only-dependencies
119+ run : cabal build exe:jl4-lsp exe:jl4-cli --only-dependencies
120120
121121 - name : Save cached dependencies
122122 uses : actions/cache/save@v4
@@ -125,22 +125,23 @@ jobs:
125125 path : ${{ steps.setup.outputs.cabal-store }}
126126 key : ${{ steps.cache.outputs.cache-primary-key }}
127127
128- - name : Build jl4-lsp
128+ - name : Build jl4-lsp and jl4-cli
129129 shell : bash
130- run : cabal build exe:jl4-lsp
130+ run : cabal build exe:jl4-lsp exe:jl4-cli
131131
132- - name : Copy binary
132+ - name : Copy binaries
133133 shell : bash
134134 run : |
135135 mkdir -p bin/win32-x64
136136 cp $(cabal list-bin exe:jl4-lsp) bin/win32-x64/jl4-lsp.exe
137+ cp $(cabal list-bin exe:jl4-cli) bin/win32-x64/jl4-cli.exe
137138 ls -lh bin/win32-x64/
138139
139140 - name : Upload binary artifact
140141 uses : actions/upload-artifact@v4
141142 with :
142143 name : jl4-lsp-win32-x64
143- path : bin/win32-x64/jl4-lsp.exe
144+ path : bin/win32-x64/
144145 retention-days : 90
145146
146147 build-lsp-linux-x64 :
0 commit comments