Skip to content

Commit 26294ad

Browse files
committed
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.
1 parent 0c80ae9 commit 26294ad

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on: [push, pull_request]
44

55
env:
66
CARGO_TERM_COLOR: always
7-
TESTING_PLUGINS_VERSION: "1.6.2"
8-
TESTING_PLUGINS_HASH: 01f7c8ae31e6527f0a1c1155d73653cf3af80a6af1e636ec0b33d7130e68182e
97

108
permissions:
119
contents: read
@@ -62,11 +60,18 @@ jobs:
6260
build:
6361
strategy:
6462
matrix:
65-
os:
66-
- windows-2025
67-
- ubuntu-24.04
63+
target:
64+
- os: windows-2025
65+
cargo_llvm_cov_sha256: dcf8e75e10b07f8348c900a600e429585cccaf4239533b7247a76c7ceaca0b3f
66+
- os: ubuntu-24.04
67+
cargo_llvm_cov_sha256: aa53c5963beb832f8ea04fea8dcbcece55a99e0c31a8d1e8d514d59ed5942160
6868

69-
runs-on: ${{ matrix.os }}
69+
runs-on: ${{ matrix.target.os }}
70+
71+
env:
72+
CARGO_LLVM_COV_VERSION: v0.6.19
73+
TESTING_PLUGINS_VERSION: "1.6.2"
74+
TESTING_PLUGINS_HASH: 01f7c8ae31e6527f0a1c1155d73653cf3af80a6af1e636ec0b33d7130e68182e
7075

7176
steps:
7277
- uses: actions/checkout@v5
@@ -88,9 +93,14 @@ jobs:
8893
if: steps.cache-cargo.outputs.cache-hit != 'true'
8994

9095
- name: Install cargo-llvm-cov
91-
uses: taiki-e/install-action@d6d752794628f1e1fffa3c4d3c8874e06f043d50 # v2.62.15
92-
with:
93-
tool: cargo-llvm-cov@0.6.19
96+
shell: bash
97+
run: |
98+
host=$(rustc -vV | grep '^host:' | cut -d' ' -f2)
99+
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"
100+
101+
sha256sum -c <<< "${{ matrix.target.cargo_llvm_cov_sha256 }} cargo-llvm-cov-$host.tar.gz"
102+
103+
tar xzf cargo-llvm-cov-$host.tar.gz -C "$HOME/.cargo/bin"
94104
95105
- name: Prepare test resources
96106
shell: bash

0 commit comments

Comments
 (0)