From fd064d67436df8b2bb848486926f82d88f034ba2 Mon Sep 17 00:00:00 2001 From: user0-07161 Date: Tue, 10 Feb 2026 19:20:37 +0100 Subject: [PATCH] feat: forgejo workflows --- .forgejo/workflows/rust.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 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..5e8d157 --- /dev/null +++ b/.forgejo/workflows/rust.yml @@ -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 +