Skip to content

Commit daa59d8

Browse files
authored
use install-action instead of cargo install (typst-community#29)
1 parent 97018bf commit daa59d8

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,10 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22-
- name: Probe runner package cache
23-
uses: awalsh128/cache-apt-pkgs-action@v1
22+
- name: Install just
23+
uses: taiki-e/install-action@v2
2424
with:
25-
packages: cargo
26-
version: 1.0
27-
28-
- name: Install just from crates.io
29-
uses: baptiste0928/cargo-install@v3
30-
with:
31-
crate: just
25+
tool: just
3226

3327
- name: Setup typst
3428
uses: typst-community/setup-typst@v3

.github/workflows/tests.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,10 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@v4
2525

26-
- name: Probe runner package cache
27-
uses: awalsh128/cache-apt-pkgs-action@v1
26+
- name: Install just and tytanic
27+
uses: taiki-e/install-action@v2
2828
with:
29-
packages: cargo
30-
version: 1.0
31-
32-
- name: Install just from crates.io
33-
uses: baptiste0928/cargo-install@v3
34-
with:
35-
crate: just
36-
37-
- name: Install tytanic from crates.io
38-
uses: baptiste0928/cargo-install@v3
39-
with:
40-
crate: tytanic
41-
version: ${{ matrix.typst-version.tytanic }}
29+
tool: just,tytanic@${{ matrix.typst-version.tytanic }}
4230

4331
- name: Setup typst
4432
id: setup-typst

0 commit comments

Comments
 (0)