parent
87d14d8554
commit
f77a9d1272
1 changed files with 14 additions and 9 deletions
23
action.yml
23
action.yml
|
|
@ -9,12 +9,17 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: curl -o nim.tar.xz https://nim-lang.org/download/nim-${{ inputs.version }}-linux_x64.tar.xz
|
- shell: bash
|
||||||
- run: tar -xf nim.tar.xz
|
run: |
|
||||||
- run: cd nim-${{ inputs.version }} && ./install.sh /usr/bin
|
set -euxo pipefail
|
||||||
shell: bash
|
tempdir = $(mktemp -d)
|
||||||
- run: cp nim-${{ inputs.version }}/bin/* /usr/bin
|
pushd $tempdir
|
||||||
shell: bash
|
curl -o nim.tar.xz https://nim-lang.org/download/nim-${{ inputs.version }}-linux_x64.tar.xz
|
||||||
- run: mkdir ./lib && mv /usr/lib/nim/* ./lib && mv ./lib /usr/lib/nim/lib # fixes nim not finding the system lib
|
tar -xf nim.tar.xz
|
||||||
shell: bash
|
pushd nim-${{ inputs.version }}
|
||||||
- run: rm -fr nim.tar.gz nim-${{ inputs.version }} lib
|
./install.sh /usr/bin
|
||||||
|
popd
|
||||||
|
cp nim-${{ inputs.version }}/bin/* /usr/bin
|
||||||
|
mkdir ./lib && mv /usr/lib/nim/* ./lib && mv ./lib /usr/lib/nim/lib # fixes nim not finding the system lib
|
||||||
|
popdir
|
||||||
|
rm -fr $tempdir
|
||||||
Loading…
Add table
Add a link
Reference in a new issue