martin-g commented on code in PR #501:
URL: https://github.com/apache/avro-rs/pull/501#discussion_r2888990567
##########
.github/workflows/test-lang-rust-ci.yml:
##########
@@ -96,6 +96,20 @@ jobs:
path: ~/.cargo-${{ matrix.rust }}/cargo-rdme
key: cargo-rdme-
+ - name: Cache cargo-expand
+ if: matrix.rust == 'nightly'
+ uses: actions/cache@v5
+ with:
+ path: ~/.cargo-${{ matrix.rust }}/cargo-expand
+ key: cargo-expand-
+
+ - name: Install cargo-expand
+ # The result is environment independent so one test pattern is enough.
+ if: matrix.rust == 'nightly'
+ run: |
+ cargo install --root ~/.cargo-${{ matrix.rust }}/cargo-expand
--locked cargo-expand
Review Comment:
Let's use taiki-e/install-action. It uses `binstall` internally and thus it
is much faster.
https://github.com/apache/avro-rs/blob/14debf5e0c4e68d298860e7a308676265eab11ed/.github/workflows/test-lang-rust-ci.yml#L40-L42
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]