mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Replace use of taiki-e/install-action
The action updates very frequently with irrelevant changes (for other things it can install), making it more of a review burden than it's worth.
This commit is contained in:
@@ -75,6 +75,9 @@ jobs:
|
||||
|
||||
runs-on: ${{ matrix.target.os }}
|
||||
|
||||
env:
|
||||
CARGO_LLVM_COV_VERSION: v0.6.19
|
||||
|
||||
outputs:
|
||||
coverage_windows_x86: ${{ steps.check-coverage.outputs.coverage_i686-pc-windows-msvc }}
|
||||
coverage_windows_x86_64: ${{ steps.check-coverage.outputs.coverage_x86_64-pc-windows-msvc }}
|
||||
@@ -98,9 +101,21 @@ jobs:
|
||||
if: matrix.target.triple == 'i686-pc-windows-msvc'
|
||||
|
||||
- name: Install cargo-llvm-cov
|
||||
uses: taiki-e/install-action@d6d752794628f1e1fffa3c4d3c8874e06f043d50 # v2.62.15
|
||||
with:
|
||||
tool: cargo-llvm-cov@0.6.19
|
||||
shell: bash
|
||||
run: |
|
||||
host=$(rustc -vV | grep '^host:' | cut -d' ' -f2)
|
||||
curl --proto '=https' --tlsv1.2 -fsSLO "https://github.com/taiki-e/cargo-llvm-cov/releases/download/$CARGO_LLVM_COV_VERSION/cargo-llvm-cov-$host.tar.gz"
|
||||
|
||||
if [[ "${{ runner.os }}" == "Windows" ]]
|
||||
then
|
||||
EXPECTED_HASH=dcf8e75e10b07f8348c900a600e429585cccaf4239533b7247a76c7ceaca0b3f
|
||||
else
|
||||
EXPECTED_HASH=aa53c5963beb832f8ea04fea8dcbcece55a99e0c31a8d1e8d514d59ed5942160
|
||||
fi
|
||||
|
||||
sha256sum -c <<< "$EXPECTED_HASH cargo-llvm-cov-$host.tar.gz"
|
||||
|
||||
tar xzf cargo-llvm-cov-$host.tar.gz -C "$HOME/.cargo/bin"
|
||||
|
||||
- name: Prepare test resources
|
||||
shell: pwsh
|
||||
|
||||
Reference in New Issue
Block a user