iffy / install-nim

Github Action to install Nim
MIT License
30 stars 1 forks source link

Why is it so slow on macOS? #20

Closed bichanna closed 2 years ago

bichanna commented 2 years ago

Hi there.

I'm using install-nim in my project, and I found that your Github Action is very slow on macOS (though, it's fast on Ubuntu).

jobs:
  macOS:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - uses: iffy/install-nim@v3.2.2
        with:
          version: stable
 ...
Screen Shot 2022-03-12 at 1 16 45 AM

As you can see above, it took 9 minutes.

Is there a way of speeding it up?

iffy commented 2 years ago

Yes, macOS is excruciatingly slow as choosenim compiles from source by default on macOS. You can use the binary: prefix to speed it up. See https://github.com/iffy/install-nim#speed Or for example: version: binary:1.6.0

bichanna commented 2 years ago

Thanks!