parent
5d5e833228
commit
05e6dac5b6
2 changed files with 38 additions and 0 deletions
18
.forgejo/workflows/test.yaml
Normal file
18
.forgejo/workflows/test.yaml
Normal file
|
|
@ -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
|
||||
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