setup-nim/action.yml
mr-boneman 05e6dac5b6
Some checks failed
/ test (push) Failing after 43s
the thing
2024-05-12 21:33:11 +02:00

20 lines
No EOL
698 B
YAML

# 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 }}