-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.12 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Rust CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
# Add a step to set file permissions for the working directory (if needed)
- name: Set file permissions
run: chmod -R 755 .
working-directory: ${{ github.workspace }}
# Add a step to check if Cargo can parse the locked dependencies
- name: Check Cargo manifest
run: cargo check
working-directory: ${{ github.workspace }}
# Add a step to create tests
- name: Create tests
run: cargo test --no-run
working-directory: ${{ github.workspace }}
# Add other steps for testing, clippy checks, etc.
- name: Check for clippy warnings
run: cargo clippy -- -D warnings
working-directory: ${{ github.workspace }}
- name: Run tests
run: cargo test
working-directory: ${{ github.workspace }}
- name: Build release
run: cargo build --release
working-directory: ${{ github.workspace }}