From 05e6dac5b653fba2363e10cea63b5a2c37b8b95a Mon Sep 17 00:00:00 2001 From: mr-boneman Date: Sun, 12 May 2024 21:33:11 +0200 Subject: [PATCH] the thing --- .forgejo/workflows/test.yaml | 18 ++++++++++++++++++ action.yml | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .forgejo/workflows/test.yaml create mode 100644 action.yml diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml new file mode 100644 index 0000000..dcee168 --- /dev/null +++ b/.forgejo/workflows/test.yaml @@ -0,0 +1,18 @@ +on: + push: + +jobs: + test: + runs-on: docker + container: + image: registry.fedoraproject.org/fedora:40 + steps: + - name: install build env + run: dnf group install -y "C Development Tools and Libraries" "Development Tools" + - uses: https://git.ws-essen.de/actions/setup-nim@main + - name: clone rpmtest nimble + run: git clone https://git.ws-essen.de/mr-boneman/rpmtest.git . + - name: build with nimble + run: nimble build + - name: run rpmtest + run: ./rpmtest \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..4e34b30 --- /dev/null +++ b/action.yml @@ -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 }} \ No newline at end of file