File tree Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change @@ -712,6 +712,12 @@ group:
712
712
template : true
713
713
repos : |
714
714
microsoft/mu_devops
715
+ microsoft/mu_feature_mm_supv
716
+ microsoft/mu_plus
717
+ microsoft/mu_rust_helpers
718
+ microsoft/mu_rust_hid
719
+ microsoft/mu_rust_pi
720
+ microsoft/mu_tiano_platforms
715
721
716
722
# Rust - Formatting configuration
717
723
- files :
@@ -722,6 +728,7 @@ group:
722
728
dest : rustfmt.toml
723
729
repos : |
724
730
microsoft/mu_basecore
731
+ microsoft/mu_feature_mm_supv
725
732
microsoft/mu_plus
726
733
microsoft/mu_rust_helpers
727
734
microsoft/mu_rust_hid
@@ -748,3 +755,15 @@ group:
748
755
microsoft/mu_rust_hid
749
756
microsoft/mu_rust_pi
750
757
microsoft/mu_tiano_platforms
758
+
759
+ # Rust - Cargo Workflow
760
+ - files :
761
+ - source : .sync/workflows/leaf/RustCargoSteps.yml
762
+ dest : .github/workflows/RustCargoSteps.yml
763
+ repos : |
764
+ microsoft/mu_basecore
765
+ microsoft/mu_plus
766
+ microsoft/mu_rust_helpers
767
+ microsoft/mu_rust_hid
768
+ microsoft/mu_rust_pi
769
+ microsoft/mu_tiano_platforms
Original file line number Diff line number Diff line change
1
+ # This workflow validates the formatting of Rust code,
2
+ # make sure Rust test are passing and run some validation on the Rust documentation.
3
+ #
4
+ # NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there
5
+ # instead of the file in this repo.
6
+ #
7
+ # - Mu DevOps Repo: https://github.com/microsoft/mu_devops
8
+ # - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml
9
+ #
10
+ # Copyright (c) Microsoft Corporation.
11
+ # SPDX-License-Identifier: BSD-2-Clause-Patent
12
+ #
13
+
14
+ name : Validate rust code.
15
+
16
+ on :
17
+ workflow_dispatch :
18
+ push :
19
+ branches :
20
+ - " main"
21
+ - " dev/**"
22
+ - " release/**"
23
+ pull_request :
24
+ branches :
25
+ - " main"
26
+ - " dev/**"
27
+ - " release/**"
28
+
29
+ jobs :
30
+ rust_ci :
31
+ name : Rust CI
32
+
33
+ runs-on : ubuntu-latest
34
+
35
+ steps :
36
+ - name : ✅ Checkout Repository ✅
37
+ uses : actions/checkout@v4
38
+
39
+ - name : 🛠️ Download Rust Tools 🛠️
40
+ uses : microsoft/mu_devops/.github/actions/rust-tool-cache@main
41
+
42
+ - name : Run cargo fmt
43
+ run : cargo make fmt
44
+ env :
45
+ RUSTC_BOOTSTRAP : 1
46
+
47
+ - name : 📎 Run cargo clippy 📎
48
+ if : success() || failure()
49
+ run : cargo make clippy
50
+ env :
51
+ RUSTC_BOOTSTRAP : 1
52
+
53
+ - name : 🧪 Run Tests 🧪
54
+ if : success() || failure()
55
+ run : cargo make test
56
+ env :
57
+ RUSTC_BOOTSTRAP : 1
58
+
59
+ - name : Run Documentation
60
+ if : success() || failure()
61
+ run : cargo make doc
62
+ env :
63
+ RUSTC_BOOTSTRAP : 1
You can’t perform that action at this time.
0 commit comments