You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `rust-project-path` | No | `.` | Path to the Rust project |
123
+
| `workspace-path` | No | `.` | Workspace folder where `target` directory is. Uses `rust-project-path` if not set. |
124
+
| `pgo-project-path` | No | `.` | Path to the Rust project used for gathering PGO data. Can be same or separate project. |
125
+
| `crate-name` | Yes | | Name of the Rust crate (used to determine file name) |
126
+
| `target` | Yes | | The target platform for the Rust compiler |
127
+
| `features` | No | `''` | Comma-separated list of features to include in the build |
128
+
| `no-default-features` | No | `false` | Do not include default features in the build |
129
+
| `use-pgo` | No | `false` | Use Profile-Guided Optimization [PGO] to build the library. |
130
+
| `pgo-benchmark-name` | No | `'my_benchmark'` | Benchmark name to use with PGO. |
131
+
| `use-cross` | No | `false` | Use cross-rs for building. If false, use cargo. |
132
+
| `additional-rustflags` | No | `''` | Additional RUSTFLAGS to pass to the Rust compiler |
133
+
| `additional-rustc-args` | No | `''` | Additional arguments to pass directly to `rustc` |
134
+
| `use-cache` | No | `true` | Enable or disable the build cache using `Swatinem/rust-cache`. |
135
+
| `upload-artifacts` | No | `true` | Upload the built artifacts as a GitHub Actions artifact |
136
+
| `abort-on-panic` | No | `true` | Abort immediately on panic. If false, the default panic handler is used. |
137
+
| `build-library` | No | `false` | Build a library instead of a binary. |
138
+
| `run-tests-and-coverage` | No | `false` | Run tests and coverage using the `devops-rust-test-and-coverage` action. |
139
+
| `size-optimized-std` | No | `false` | Builds `std` with size optimizations, such as reduced `core::fmt` footprint. |
140
+
| `additional-std-features` | No | `` | Specify extra `build-std` features. |
141
+
142
+
#### Parameters Passed Through to `devops-rust-test-and-coverage`
143
+
144
+
These parameters are only used when `run-tests-and-coverage` is enabled and are passed directly to the [devops-rust-test-and-coverage][devops-test-coverage] action:
| `upload-coverage-to-codecov` | No | `true` | Whether to upload coverage to Codecov |
149
+
| `codecov-token` | No | | Codecov token for uploading coverage |
150
+
| `use-tarpaulin` | No | `true` | Whether to use Tarpaulin for code coverage. If false, only runs tests. |
151
+
| `use-binstall` | No | `true` | Whether to use cargo-binstall for installing components like tarpaulin. If false, uses cargo install. |
152
+
| `install-binstall` | No | `true` | Whether to install cargo-binstall. If false, assumes it is already available in the environment. |
153
+
154
+
**Note:** The following parameters are used by both this action AND passed through to the test action: `target`, `features`, `no-default-features`, `use-cross`.
Copy file name to clipboardExpand all lines: action.yml
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,14 @@ inputs:
90
90
description: 'Enable or disable the build cache using Swatinem/rust-cache.'
91
91
required: false
92
92
default: "true"
93
+
use-binstall:
94
+
description: 'Whether to use cargo-binstall in the test-and-coverage action for installing tools like tarpaulin. This parameter is passed through to the devops-rust-test-and-coverage action.'
95
+
required: false
96
+
default: "true"
97
+
install-binstall:
98
+
description: 'Whether to install cargo-binstall to make it available for the test-and-coverage action. If false, assumes it is already available in the environment.'
0 commit comments