Hope this works
This commit is contained in:
parent
38494fecbc
commit
c8b174d182
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/rust.yaml
Normal file
29
.forgejo/workflows/rust.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Rust
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: poseidon-runner
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue