# SPDX-License-Identifier: MIT name: 'setup nim' description: 'set up nim using the official binaries' inputs: version: description: 'nim version to install' default: "2.0.4" runs: using: "composite" steps: - run: curl -o nim.tar.xz https://nim-lang.org/download/nim-${{ inputs.version }}-linux_x64.tar.xz - run: tar -xf nim.tar.xz - run: cd nim-${{ inputs.version }} && ./install /usr/bin shell: bash - run: cp nim-${{ inputs.version }}/bin/* /usr/bin shell: bash - run: mkdir ./lib && mv /usr/lib/nim/* ./lib && mv ./lib /usr/lib/nim/lib # fixes nim not finding the system lib shell: bash - run: rm -fr nim.tar.gz nim-${{ inputs.version }}