feat: forgejo workflows

This commit is contained in:
user0-07161 2026-02-10 21:12:32 +01:00
parent 200ab7a2c7
commit 25c89a270e

View file

@ -0,0 +1,45 @@
name: build
on: [push]
jobs:
test-debian:
runs-on: docker
container:
image: rust:latest
steps:
- name: prepare packages
run: |
apt update && \
apt -y install git cargo
- name: checkout
run: |
git init
git remote add origin ${FORGEJO_SERVER_URL}/${FORGEJO_REPOSITORY}
git fetch origin
git fetch origin ${FORGEJO_REF}
git checkout ${FORGEJO_REF_NAME}
- name: build the package
run: cargo build
test-alpine:
runs-on: docker
container:
image: rust:alpine3.23
steps:
- name: prepare packages
run: |
apk update && \
apk --interactive=no add git cargo
- name: checkout
run: |
git init
git remote add origin ${FORGEJO_SERVER_URL}/${FORGEJO_REPOSITORY}
git fetch origin
git fetch origin ${FORGEJO_REF}
git checkout ${FORGEJO_REF_NAME}
- name: build the package
run: cargo build