@@ -36,81 +36,82 @@ jobs:
3636 - name : Opam dependencies
3737 run : opam install --deps-only -t .
3838
39- - name : Format
40- run : opam exec -- dune fmt
39+ # - name: Format
40+ # run: opam exec -- dune fmt
4141
4242 - name : Build
4343 run : |
4444 opam exec -- dune subst
45- opam exec -- dune build -p ocamlformat-lib,ocamlformat
45+ opam exec -- dune build -p ocamlformat-mlx- lib,ocamlformat-mlx
4646
4747 - name : Runtest
4848 run : opam exec -- dune runtest
4949
50- - name : Check manpages
51- run : opam exec -- dune build @gen_manpage --auto-promote
50+ # - name: Check manpages
51+ # run: opam exec -- dune build @gen_manpage --auto-promote
5252
5353 - name : Upload binary
5454 # Using a specific version because of https://github.com/actions/upload-artifact/issues/590
55555656 with :
5757 name : ocamlformat-${{ runner.os }}-${{ runner.arch }}
58- path : _build/install/default/bin/ocamlformat
59-
60- test-branch :
61- if : ${{ github.ref != 'refs/heads/main' }}
62- needs : build-linux
63- runs-on : ubuntu-latest
64- strategy :
65- matrix :
66- profile :
67- - conventional
68- - ocamlformat
69- - janestreet
70- # To enable comparing with ocp-indent:
71- # include:
72- # - ocp_indent: true
73- # ocp_indent_config: JaneStreet
74- # profile: janestreet
75-
76- steps :
77- - name : Install ocp-indent
78- if : ${{ matrix.ocp_indent }}
79- run : |
80- sudo apt install -y ocp-indent
81- sudo touch /etc/ocamlfind.conf
82-
83- # Clone the project
84- - uses : actions/checkout@v3
85- with :
86- fetch-depth : 0
87-
88- - uses : actions/cache@v3
89- with :
90- path : test-extra/code
91- key : test-extra-code
92-
93- - name : Fetch main build of ocamlformat
94- uses : dawidd6/action-download-artifact@v6
95- with :
96- workflow : build-linux.yml
97- workflow_conclusion : " "
98- check_artifacts : true
99- branch : main
100- name : ocamlformat-${{ runner.os }}-${{ runner.arch }}
101- path : ocamlformat-a
102-
103- - name : Fetch new build of ocamlformat
104- 105- with :
106- name : ocamlformat-${{ runner.os }}-${{ runner.arch }}
107- path : ocamlformat-b
108-
109- - name : Test ${{ matrix.profile }} profile
110- run : |
111- chmod +x ocamlformat-a/ocamlformat ocamlformat-b/ocamlformat
112- ./tools/test_branch.sh $TEST_BRANCH_ARGS -n -a ocamlformat-a/ocamlformat -b ocamlformat-b/ocamlformat 'profile=${{ matrix.profile }}'
113- shell : bash
114- env :
115- OCP_INDENT_CONFIG : ${{ matrix.ocp_indent_config }}
116- TEST_BRANCH_ARGS : ${{ matrix.ocp_indent && '-o -s' || '' }}
58+ path : _build/install/default/bin/ocamlformat-mlx
59+
60+ # test-branch:
61+ # if: ${{ github.ref != 'refs/heads/main' }}
62+ # needs: build-linux
63+ # runs-on: ubuntu-latest
64+ # strategy:
65+ # matrix:
66+ # profile:
67+ # - conventional
68+ # - ocamlformat
69+ # - janestreet
70+ # # To enable comparing with ocp-indent:
71+ # # include:
72+ # # - ocp_indent: true
73+ # # ocp_indent_config: JaneStreet
74+ # # profile: janestreet
75+ #
76+ # steps:
77+ # - name: Install ocp-indent
78+ # if: ${{ matrix.ocp_indent }}
79+ # run: |
80+ # sudo apt install -y ocp-indent
81+ # sudo touch /etc/ocamlfind.conf
82+ #
83+ # # Clone the project
84+ # - uses: actions/checkout@v3
85+ # with:
86+ # fetch-depth: 0
87+ #
88+ # - uses: actions/cache@v3
89+ # with:
90+ # path: test-extra/code
91+ # key: test-extra-code
92+ #
93+ # - name: Fetch main build of ocamlformat
94+ # uses: dawidd6/action-download-artifact@v6
95+ # with:
96+ # workflow: build-linux.yml
97+ # workflow_conclusion: ""
98+ # check_artifacts: true
99+ # branch: main
100+ # name: ocamlformat-${{ runner.os }}-${{ runner.arch }}
101+ # path: ocamlformat-a
102+ # allow_forks: true
103+ #
104+ # - name: Fetch new build of ocamlformat
105+ 106+ # with:
107+ # name: ocamlformat-${{ runner.os }}-${{ runner.arch }}
108+ # path: ocamlformat-b
109+ #
110+ # - name: Test ${{ matrix.profile }} profile
111+ # run: |
112+ # chmod +x ocamlformat-a/ocamlformat ocamlformat-b/ocamlformat
113+ # ./tools/test_branch.sh $TEST_BRANCH_ARGS -n -a ocamlformat-a/ocamlformat -b ocamlformat-b/ocamlformat 'profile=${{ matrix.profile }}'
114+ # shell: bash
115+ # env:
116+ # OCP_INDENT_CONFIG: ${{ matrix.ocp_indent_config }}
117+ # TEST_BRANCH_ARGS: ${{ matrix.ocp_indent && '-o -s' || '' }}
0 commit comments