should work now
Some checks failed
/ test (push) Failing after 33s

This commit is contained in:
mr-boneman 2024-05-12 21:47:34 +02:00
parent 87d14d8554
commit f77a9d1272

View file

@ -9,12 +9,17 @@ inputs:
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.sh /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 }} lib
- shell: bash
run: |
set -euxo pipefail
tempdir = $(mktemp -d)
pushd $tempdir
curl -o nim.tar.xz https://nim-lang.org/download/nim-${{ inputs.version }}-linux_x64.tar.xz
tar -xf nim.tar.xz
pushd nim-${{ inputs.version }}
./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