Skip to content

Commit 4818fb7

Browse files
committed
Port install-rust to a composite action
1 parent e6fbc1e commit 4818fb7

File tree

3 files changed

+17
-38
lines changed

3 files changed

+17
-38
lines changed

.github/actions/install-rust/action.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,20 @@ inputs:
88
default: 'stable'
99

1010
runs:
11-
using: 'node16'
12-
main: 'main.js'
11+
using: "composite"
12+
steps:
13+
- shell: bash
14+
run: |
15+
rustup show
16+
17+
# Save disk space by avoiding incremental compilation.
18+
echo 'CARGO_INCREMENTAL=0' >> "$GITHUB_ENV"
19+
20+
# Turn down debuginfo from 2 to 1 to help save disk space
21+
echo 'CARGO_PROFILE_DEV_DEBUG=1' >> "$GITHUB_ENV"
22+
echo 'CARGO_PROFILE_TEST_DEBUG=1' >> "$GITHUB_ENV"
23+
24+
- if: ${{ ! startsWith(inputs.toolchain, 'nightly') }}
25+
shell: bash
26+
run: |
27+
echo 'RUSTFLAGS=-D warnings' >> "$GITHUB_ENV"

.github/actions/install-rust/main.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/actions/install-rust/package.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)