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: 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