Basic rust CI instead of nix flake check
This commit is contained in:
parent
7cd74f95a2
commit
1a20858fe0
30
.forgejo/workflows/build.yaml
Normal file
30
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: beefcake
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: cargo build
|
||||
run: 'nix develop -c cargo build'
|
||||
test:
|
||||
runs-on: beefcake
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: cargo test
|
||||
run: 'nix develop -c cargo test'
|
||||
formatting:
|
||||
runs-on: beefcake
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: cargo fmt --check
|
||||
run: 'nix develop -c cargo fmt --check'
|
||||
lint:
|
||||
runs-on: beefcake
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: cargo clippy
|
||||
run: 'nix develop -c cargo clippy'
|
Loading…
Reference in a new issue