Skip to content

Commit 7ed81c9

Browse files
committed
Add basic workflow
1 parent a5f2c7b commit 7ed81c9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Openmina CI
2+
on: [ push, pull_request, workflow_dispatch ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Git checkout
9+
uses: actions/checkout@v3
10+
11+
- name: Setup Rust
12+
uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: nightly
15+
override: true
16+
components: rustfmt, clippy
17+
18+
- name: Check
19+
uses: actions-rs/cargo@v1
20+
with:
21+
command: check
22+
23+
- name: Clippy
24+
uses: actions-rs/cargo@v1
25+
with:
26+
command: clippy
27+
# don't fail the job until clippy is fixed
28+
continue-on-error: true
29+
30+
- name: Release build
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: build
34+
args: --release --bin openmina

0 commit comments

Comments
 (0)