Skip to content

Commit e6cbc20

Browse files
panagosg7facebook-github-bot
authored andcommitted
[flow][windows] set paths to D:\ in build_win (#9288)
Summary: The `OPAMROOT: D:\a\flow\flow\_opam` is what made the difference eventually. Not sure if all the rest is necessary, but keeping them seems okay seems locations should be looked up in D:\ Changelog: [internal] Pull Request resolved: #9288 Reviewed By: SamChou19815 Differential Revision: D76348212 fbshipit-source-id: 008a984ca338e18bca8ec392d9b53e81b039a943
1 parent b09e088 commit e6cbc20

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build_and_test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,9 @@ jobs:
255255
build_win:
256256
runs-on: windows-2022
257257
env:
258-
FLOW_TMP_DIR: C:\tmp\flow
258+
FLOW_TMP_DIR: D:\tmp\flow
259259
OPAMDOWNLOADJOBS: 1
260+
OPAMROOT: D:\a\flow\flow\_opam
260261
steps:
261262
- uses: actions/[email protected]
262263
- name: Set up workspace
@@ -302,12 +303,12 @@ jobs:
302303
PATH: /usr/local/bin:/usr/bin:/cygdrive/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
303304
- name: Git Safe Directory
304305
run: git config --global --add safe.directory /cygdrive/d/a/flow/flow
305-
shell: C:\cygwin\bin\bash.exe '{0}'
306+
shell: D:\cygwin\bin\bash.exe '{0}'
306307
env:
307308
PATH: /usr/local/bin:/usr/bin:/cygdrive/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
308309
- name: Create opam switch
309310
run: make deps
310-
shell: C:\cygwin\bin\bash.exe '{0}'
311+
shell: D:\cygwin\bin\bash.exe '{0}'
311312
env:
312313
PATH: /usr/local/bin:/usr/bin:/cygdrive/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
313314
- name: Build flow.exe
@@ -318,7 +319,7 @@ jobs:
318319
make bin/flow.exe dist/flow.zip ;
319320
mkdir -p bin/win64 && cp bin/flow.exe bin/win64/flow.exe ;
320321
cp dist/flow.zip dist/flow-win64.zip
321-
shell: C:\cygwin\bin\bash.exe -leo pipefail '{0}'
322+
shell: D:\cygwin\bin\bash.exe -leo pipefail '{0}'
322323
env:
323324
PATH: /usr/local/bin:/usr/bin:/cygdrive/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
324325
- name: Build parser test runner
@@ -327,7 +328,7 @@ jobs:
327328
eval $(opam env) ;
328329
dune build src/parser/test/run_tests.exe ;
329330
cp _build/default/src/parser/test/run_tests.exe bin/win64/run_parser_tests.exe
330-
shell: C:\cygwin\bin\bash.exe -leo pipefail '{0}'
331+
shell: D:\cygwin\bin\bash.exe -leo pipefail '{0}'
331332
env:
332333
PATH: /usr/local/bin:/usr/bin:/cygdrive/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
333334
- uses: actions/[email protected]

0 commit comments

Comments
 (0)