This commit is contained in:
parent
08417abd93
commit
cae3c9ef15
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/compile.yaml
Normal file
22
.forgejo/workflows/compile.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue