diff --git a/.forgejo/workflows/compile.yaml b/.forgejo/workflows/compile.yaml new file mode 100644 index 0000000..20943a0 --- /dev/null +++ b/.forgejo/workflows/compile.yaml @@ -0,0 +1,22 @@ +on: [push] +jobs: + test: + runs-on: docker + container: + image: code.forgejo.org/oci/debian:latest + steps: + - name: prepare packages + run: | + apt update && \ + apt -y install git + + - 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