parent
5d5e833228
commit
05e6dac5b6
2 changed files with 38 additions and 0 deletions
20
action.yml
Normal file
20
action.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue