Skip to content

Commit

Permalink
Update rust-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jamjamjon authored Sep 11, 2024
1 parent 1916337 commit 5e30a31
Showing 1 changed file with 36 additions and 13 deletions.
49 changes: 36 additions & 13 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ jobs:
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Install FFmpeg (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y --no-install-recommends ffmpeg clang libavcodec-dev libavformat-dev libavutil-dev pkg-config
- name: Install FFmpeg (macOS)
if: runner.os == 'macOS'
run: brew install pkg-config ffmpeg
- name: Install FFmpeg (Windows)
if: runner.os == 'Windows'
run: |
$FFMPEG_URL = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z"
Invoke-WebRequest -Uri $FFMPEG_URL -OutFile ffmpeg.7z
7z x ffmpeg.7z -o./ffmpeg
$env:Path += ";$(pwd)/ffmpeg/bin"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -35,6 +50,21 @@ jobs:
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Install FFmpeg (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y --no-install-recommends ffmpeg clang libavcodec-dev libavformat-dev libavutil-dev pkg-config
- name: Install FFmpeg (macOS)
if: runner.os == 'macOS'
run: brew install pkg-config ffmpeg
- name: Install FFmpeg (Windows)
if: runner.os == 'Windows'
run: |
$FFMPEG_URL = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z"
Invoke-WebRequest -Uri $FFMPEG_URL -OutFile ffmpeg.7z
7z x ffmpeg.7z -o./ffmpeg
$env:Path += ";$(pwd)/ffmpeg/bin"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -50,6 +80,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install FFmpeg
run: |
sudo apt update
sudo apt install -y --no-install-recommends ffmpeg clang libavcodec-dev libavformat-dev libavutil-dev pkg-config
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -66,21 +100,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install FFmpeg (Ubuntu)
if: runner.os == 'Linux'
- name: Install FFmpeg
run: |
sudo apt update
sudo apt install -y clang libavcodec-dev libavformat-dev libavutil-dev pkg-config
- name: Install FFmpeg (macOS)
if: runner.os == 'macOS'
run: brew install pkg-config ffmpeg
- name: Install FFmpeg (Windows)
if: runner.os == 'Windows'
run: |
$FFMPEG_URL = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z"
Invoke-WebRequest -Uri $FFMPEG_URL -OutFile ffmpeg.7z
7z x ffmpeg.7z -o./ffmpeg
$env:Path += ";$(pwd)/ffmpeg/bin"
sudo apt install -y --no-install-recommends ffmpeg clang libavcodec-dev libavformat-dev libavutil-dev pkg-config
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down

0 comments on commit 5e30a31

Please sign in to comment.