-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (42 loc) · 959 Bytes
/
rust.yaml
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: CI
on:
push:
branches:
- main
- develop
pull_request:
jobs:
check:
name: Checks
runs-on: [self-hosted, heavy]
steps:
- name: Install rust
run: |
rustup show
rustup default ${{ env.RUST_VERSION }}
- name: Clone the repository
uses: actions/checkout@v4
- name: Run all checks
run: make check
test:
name: Tests
runs-on: [self-hosted, heavy]
steps:
- name: Install rust
run: |
rustup show
rustup default ${{ env.RUST_VERSION }}
- name: Clone the repository
uses: actions/checkout@v4
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry
- name: Run tests
run: make test
- name: Save cache
run: |
cache-util save cargo_git cargo_registry
env:
RUST_VERSION: 1.73.0
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0