Commit bce87d9
authored
Forgot to reactivate windows CI test (#192)
GitHub Action checks out code on windows on CRLF. This PR tried many methods of just using CRLF or converting to LF.
Tips:
- `print_endline` and multiline strings on windows ocaml fork use CRLF. `open_in_bin` + `really_input_string` too (!)
- `dos2unix` hangs when used inside `test.sh` but doesn't hang inside `ci.yml`.
- `cat` and `pipe` don't change line ending.
- use `cat -A` to check for line endings visibly. Life saving debugger.
- `sed "s/\r\n/\n/g"` apparently doesn't work on CI windows...
- `git checkout` + `ocaml-env` bug (?) fdopen/opam-repository-mingw#92
Whichever method of directly using CRLF doesn't work because of the last issue; it's likely that I'm being dumb...
So right now we set git to checkout using LF, let our native code output to CRLF, then instead of `dos2unix` or `sed`, use a perl one-liner in `test.sh` to convert those back into LF for comparison.1 parent 0b468ad commit bce87d9
2 files changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 25 | + | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
6 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments