feat: forgejo workflows
This commit is contained in:
parent
b803dcb20e
commit
92cac3c969
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/rust.yml
Normal file
23
.forgejo/workflows/rust.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: build
|
||||
|
||||
jobs:
|
||||
test:
|
||||
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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue