ocaml / setup-ocaml

GitHub Action for the OCaml programming language
https://ocaml.org/
MIT License
199 stars 39 forks source link

v3 is 2x slower than v2 (at least on Windows) #865

Closed JasonGross closed 1 month ago

JasonGross commented 2 months ago

https://github.com/JasonGross/test/actions/runs/10953316111/job/30413386004

    - uses: ocaml/setup-ocaml@v2
      with:
        ocaml-compiler: 4.13.1

takes 3m39s, while

    - uses: ocaml/setup-ocaml@v3
      with:
        ocaml-compiler: 4.13.1

takes 8m42s

logs_28625164728.zip

Full yml file ```yaml name: Example Workflow on: [push, pull_request] jobs: build: runs-on: windows-latest name: build steps: - uses: actions/checkout@v4 with: submodules: recursive - uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: 4.13.1 - run: opam exec -- chmod +x test.sh - run: opam exec -- cat test.sh - run: opam exec -- ./test.sh buildv2: runs-on: windows-latest name: buildv2 steps: - uses: actions/checkout@v2 with: submodules: recursive - uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: 4.13.1 - run: opam exec -- chmod +x test.sh - run: opam exec -- cat test.sh - run: opam exec -- ./test.sh ```
smorimoto commented 1 month ago

As long as cache is available, it should still stay fast.