Skip to content

Commit 0504ddc

Browse files
committed
fix
1 parent c7735de commit 0504ddc

File tree

1 file changed

+13
-28
lines changed

1 file changed

+13
-28
lines changed

.github/workflows/build_ffmpeg.yaml

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,34 +76,19 @@ jobs:
7676
fail-fast: false
7777
matrix:
7878
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"]
79-
runs-on: windows-latest
80-
steps:
81-
- name: Checkout repository
82-
uses: actions/checkout@v3
83-
84-
- name: Set up MSYS2
85-
uses: msys2/setup-msys2@v2
86-
with:
87-
update: true
88-
install: >-
89-
base-devel
90-
mingw-w64-x86_64-toolchain
91-
92-
- name: Build FFmpeg
93-
run: |
94-
export FFMPEG_VERSION="${{ matrix.ffmpeg-version }}"
95-
export FFMPEG_ROOT="${PWD}/ffmpeg"
96-
97-
.github/scripts/ffmpeg/build.bat
79+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
80+
with:
81+
job-name: Build
82+
upload-artifact: ffmpeg-lgpl-windows_x86_64-${{ matrix.ffmpeg-version }}
83+
repository: pytorch/torchcodec
84+
script: |
85+
export FFMPEG_VERSION="${{ matrix.ffmpeg-version }}"
86+
export FFMPEG_ROOT="${PWD}/ffmpeg"
9887
99-
tar -cf ffmpeg.tar.gz ffmpeg/include ffmpeg/lib
88+
.github/scripts/ffmpeg/build.bat
10089
101-
artifact_dir="${{ runner.temp }}/$(date +%Y-%m-%d)/windows_x86_64"
102-
mkdir -p "${artifact_dir}"
103-
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"
90+
tar -cf ffmpeg.tar.gz ffmpeg/include ffmpeg/lib
10491
105-
- name: Upload artifact
106-
uses: actions/upload-artifact@v3
107-
with:
108-
name: ffmpeg-lgpl-windows-${{ matrix.ffmpeg-version }}
109-
path: ${{ runner.temp }}/$(date +%Y-%m-%d)/windows_x86_64
92+
artifact_dir="${{ runner.temp }}/$(date +%Y-%m-%d)/windows_x86_64"
93+
mkdir -p "${artifact_dir}"
94+
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"

0 commit comments

Comments
 (0)