honeycomb-navigation/.forgejo/workflows/rust.yml
user0-07161 f8509be678
All checks were successful
build / test-alpine (push) Successful in 3m36s
build / test-debian (push) Successful in 4m14s
feat: forgejo workflows
2026-02-10 21:28:38 +01:00

47 lines
1.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 \
libxkbcommon-dev
- 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 libxkbcommon-dev
- 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