Skip to content

Commit 042aa89

Browse files
authored
Install ffmpeg via jas (#48)
1 parent 50810c1 commit 042aa89

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

.github/workflows/check.yml

+21-13
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
- uses: actions/cache@v4
2020
with:
2121
path: |
22-
~/.cargo/bin/
2322
~/.cargo/registry/index/
2423
~/.cargo/registry/cache/
2524
~/.cargo/git/db/
@@ -29,18 +28,27 @@ jobs:
2928
with:
3029
path: ~/.cache/typst
3130
key: typst
32-
- run: cargo install --debug --git https://github.com/rikhuijzer/jas
33-
- run: |
34-
jas install --gh typst/[email protected] \
35-
--sha 7d214bfeffc2e585dc422d1a09d2b144969421281e8c7f5d784b65fc69b5673f
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
- run: sudo apt-get install -y ffmpeg
31+
- run: cargo install --debug [email protected]
32+
- run: >
33+
jas install
34+
--gh typst/[email protected]
35+
--sha 7d214bfeffc2e585dc422d1a09d2b144969421281e8c7f5d784b65fc69b5673f
36+
--gh-token ${{ secrets.GITHUB_TOKEN }}
37+
- run: >
38+
jas install
39+
--url https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
40+
--sha abda8d77ce8309141f83ab8edf0596834087c52467f6badf376a6a2a4c87cf67
41+
- run: >
42+
jas install
43+
--url https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
44+
--archive-filename ffprobe
45+
--sha abda8d77ce8309141f83ab8edf0596834087c52467f6badf376a6a2a4c87cf67
3946
- run: |
4047
echo "DEEPINFRA_KEY=${{ secrets.DEEPINFRA_KEY }}" > keys.env
4148
echo "ELEVENLABS_KEY=${{ secrets.ELEVENLABS_KEY }}" >> keys.env
4249
echo "GOOGLE_KEY=${{ secrets.GOOGLE_KEY }}" >> keys.env
4350
echo "OPENAI_KEY=${{ secrets.OPENAI_KEY }}" >> keys.env
51+
- run: cargo test --no-run
4452
- run: cargo test --all-features
4553
- name: Cleanup before Post Run
4654
run: rm keys.env
@@ -52,11 +60,11 @@ jobs:
5260
steps:
5361
- uses: actions/checkout@v4
5462
- run: cargo install --debug --git https://github.com/rikhuijzer/jas
55-
- run: |
56-
jas install --gh crate-ci/[email protected] \
57-
--sha f683c2abeaff70379df7176110100e18150ecd17a4b9785c32908aca11929993
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
- run: >
64+
jas install
65+
--gh crate-ci/[email protected]
66+
--sha f683c2abeaff70379df7176110100e18150ecd17a4b9785c32908aca11929993
67+
--gh-token ${{ secrets.GITHUB_TOKEN }}
6068
- run: typos .
6169

6270
fmt:

0 commit comments

Comments
 (0)