sermo/.forgejo/workflows/rust.yml
user0 6b9d1ce7c0
All checks were successful
build / test-debian (push) Successful in 1m30s
build / test-alpine (push) Successful in 2m57s
ci: remove --verbose
2026-02-11 21:28:50 +00:00

45 lines
1 KiB
YAML

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 test -- --no-capture
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 test -- --no-capture