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
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,20 @@ This action takes the following parameters:
83
83
| `use-rust-cache` | boolean | no | Whether or not to use [the `Swatinem/rust-cache@v2` action](https://github.com/Swatinem/rust-cache). This defaults to true. |
84
84
| `rust-cache-parameters` | string (containing JSON) | no | This must be a string containing valid JSON. The JSON should be an object where the keys are the parameters for [the `Swatinem/rust-cache@v2` action](https://github.com/Swatinem/rust-cache). |
85
85
86
+
### Setting Environment Variables
87
+
88
+
You can simply set an `env` key in the workflow step that uses this action, for example:
89
+
90
+
```
91
+
- name: Run build command
92
+
uses: houseabsolute/actions-rust-cross@v1
93
+
env:
94
+
CARGO_LOG: debug
95
+
RUSTFLAGS: "-g"
96
+
with:
97
+
command: build
98
+
```
99
+
86
100
## How it Works
87
101
88
102
Under the hood, this action will compile your binaries with either `cargo` or `cross`, depending on
0 commit comments