Skip to content

Commit

Permalink
[#3] Add cargo as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Aug 5, 2024
1 parent 67aefe3 commit b1712e2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
components: rustfmt, clippy, cargo

- name: Run cargo fmt
run: cargo fmt --all -- --check
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
targets: i686-unknown-linux-gnu
components: rustfmt, clippy
components: rustfmt, clippy, cargo

- name: Download artifact cargo-nextest
uses: ./.github/actions/download-cached-rust-tool
Expand Down Expand Up @@ -250,14 +250,19 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
components: rustfmt, clippy, cargo

- name: Download artifact cargo-nextest
uses: ./.github/actions/download-cached-rust-tool
with:
artifact-bin-name: cargo-nextest
artifact-upload-name: ${{ runner.os }}-cargo-nextest

- name: Prepare Mac Os
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew remove rust
brew remove rustup
- name: Prepare Windows
if: ${{ matrix.os == 'windows-latest' }}
run: internal\scripts\ci_prepare_windows.ps1
Expand Down Expand Up @@ -338,7 +343,7 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
components: rustfmt, clippy, cargo

- name: Download artifact cargo-nextest
uses: ./.github/actions/download-cached-rust-tool
Expand Down Expand Up @@ -421,7 +426,7 @@ jobs:
uses: ./.github/actions/build-and-cache-rust-tool
with:
rust-toolchain: stable
rust-components: llvm-tools-preview
rust-components: llvm-tools-preview, cargo
check-and-install-cmd: grcov --version > /dev/null || cargo install grcov
print-version-cmd: grcov --version
cache-key: cache-1-${{ runner.os }}-grcov
Expand Down Expand Up @@ -449,7 +454,7 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: llvm-tools-preview
components: llvm-tools-preview, cargo

- name: Download artifact grcov
uses: ./.github/actions/download-cached-rust-tool
Expand Down

0 comments on commit b1712e2

Please sign in to comment.