From b0cd9da7ae574bf6401c5684e7f0e04b4fa599d1 Mon Sep 17 00:00:00 2001 From: user0-07161 Date: Tue, 10 Feb 2026 18:35:23 +0100 Subject: [PATCH] feat: forgejo workflows --- .forgejo/workflows/rust.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/rust.yml diff --git a/.forgejo/workflows/rust.yml b/.forgejo/workflows/rust.yml new file mode 100644 index 0000000..178d79d --- /dev/null +++ b/.forgejo/workflows/rust.yml @@ -0,0 +1,25 @@ +name: build + +on: [push] +jobs: + test: + runs-on: docker + container: + image: rust:trixie + 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 +