Skip to content

Commit 42a428b

Browse files
committed
use taiki-e/install-action install cargo-c
1 parent 9b66486 commit 42a428b

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build all libs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ jobs:
105105
- name: Checkout code
106106
uses: actions/checkout@v4
107107
- name: Install cargo-c
108-
run: cargo install cargo-c
108+
uses: taiki-e/install-action@v2
109+
with:
110+
tool: cargo-c
109111
- name: One Step
110112
run: |
111113

.github/workflows/build custom libs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ jobs:
7171
uses: actions/checkout@v4
7272
- name: Install cargo-c
7373
if: contains(inputs.libraries, 'dovi')
74-
run: cargo install cargo-c
74+
uses: taiki-e/install-action@v2
75+
with:
76+
tool: cargo-c
7577
- name: One Step
7678
run: |
7779

.github/workflows/build one lib.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ jobs:
109109
uses: actions/checkout@v4
110110
- name: Install cargo-c
111111
if: inputs.lib == 'dovi'
112-
run: cargo install cargo-c
112+
uses: taiki-e/install-action@v2
113+
with:
114+
tool: cargo-c
113115
- name: Install dependencies
114116
run: .github/workflows/install-dependencies.sh ${{ inputs.lib }} ${{ inputs.platform }}
115117
- name: One Step

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919
- name: Install cargo-c
20-
run: cargo install cargo-c
20+
uses: taiki-e/install-action@v2
21+
with:
22+
tool: cargo-c
2123
- name: One Step
2224
run: .github/workflows/onestep.sh test all

0 commit comments

Comments
 (0)