-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.1 KB
/
build.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
---
# SPDX-FileCopyrightText: 2023 The WAG development team
#
# SPDX-License-Identifier: CC0-1.0
name: Build and test the project
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
rust:
name: Build Rust code
runs-on: windows-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Add caching
uses: Swatinem/rust-cache@v2
- name: Build Rust code
run: cargo build -v --workspace --all-targets --all-features
- name: Run Rust tests
run: cargo test -v --workspace --all-targets --all-features
msrv:
name: Check MSRV
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Check MSRV
run: |-
cargo hack check \
-v \
--rust-version \
--workspace \
--all-targets \
--all-features