-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 984 Bytes
/
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
name: Build & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/[email protected]
- name: Build
run: cargo +nightly build -r
- name: Run tests
run: cargo +nightly test
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: build
# A file, directory or wildcard pattern that describes what to upload
path: target/release/
# The desired behavior if no files are found using the provided path.