Skip to content

Commit fca88e9

Browse files
committed
CI: Use cargo-binstall to install Typst and oxipng
1 parent c9f3aec commit fca88e9

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -176,21 +176,9 @@ jobs:
176176
# Remove the Android SDK to free up space
177177
- run: sudo rm -rf /usr/local/lib/android
178178

179-
- name: Install Typst
180-
run: |
181-
wget -q "https://github.com/typst/typst/releases/download/v${TYPST_VERSION}/typst-x86_64-unknown-linux-musl.tar.xz"
182-
tar -xf "typst-x86_64-unknown-linux-musl.tar.xz"
183-
sudo mv "typst-x86_64-unknown-linux-musl/typst" /usr/local/bin/
184-
rm -rf "typst-x86_64-unknown-linux-musl" "typst-x86_64-unknown-linux-musl.tar.xz"
185-
typst --version
186-
187-
- name: Install oxipng
188-
run: |
189-
wget -q "https://github.com/shssoichiro/oxipng/releases/download/v${OXIPNG_VERSION}/oxipng-${OXIPNG_VERSION}-x86_64-unknown-linux-musl.tar.gz"
190-
tar -xf "oxipng-${OXIPNG_VERSION}-x86_64-unknown-linux-musl.tar.gz"
191-
sudo mv "oxipng-${OXIPNG_VERSION}-x86_64-unknown-linux-musl/oxipng" /usr/local/bin/
192-
rm -rf "oxipng-${OXIPNG_VERSION}-x86_64-unknown-linux-musl" "oxipng-${OXIPNG_VERSION}-x86_64-unknown-linux-musl.tar.gz"
193-
oxipng --version
179+
- name: Install cargo-binstall ${{ env.BINSTALL_VERSION }}
180+
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/v${BINSTALL_VERSION}/install-from-binstall-release.sh | bash
181+
- run: cargo binstall --no-confirm typst-cli@${TYPST_VERSION} oxipng@${OXIPNG_VERSION}
194182

195183
- name: Download Fira Sans font
196184
run: |

0 commit comments

Comments
 (0)