eh/.forgejo/workflows/rust.yaml
amr b07a7e73e4
All checks were successful
Rust / build (push) Successful in 30s
Update .forgejo/workflows/rust.yaml
This should fix the thing
2025-07-22 02:00:37 +00:00

29 lines
609 B
YAML

name: Rust
on: [push, workflow_dispatch]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: msrd0/rust-toolchain@v1
with:
toolchain: stable
- name: install prerequisites
run: |
apt-get update
apt-get install -y curl build-essential gcc
- name: install rustfmt and rust-analyzer and nextest
run: |
rustup component add rustfmt
rustup component add rust-analyzer
- name: Run build
run: cargo build --locked --all-targets
- name: Run tests
run: cargo test