Skip to content

Commit 6e7d7d0

Browse files
committed
refactor: Use brace expansion
1 parent d2ab52d commit 6e7d7d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build-ffmpeg.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
path: ffmpeg-source
7676

7777
- name: Install APT dependencies
78-
uses: awalsh128/cache-apt-pkgs-action@latest
78+
uses: awalsh128/cache-apt-pkgs-action@v1
7979
with:
8080
packages: ragel cvs yasm pax nasm gperf autogen autoconf-archive
8181

@@ -136,7 +136,7 @@ jobs:
136136
echo "Therefore it is not legally redistributable." >> LICENSE
137137
138138
- name: 7-Zip FFmpeg binaries
139-
run: 7z a -mx9 ffmpeg-${{ needs.check.outputs.git-sha-short }}-${{ needs.check.outputs.helper-git-sha-short }}-${{ matrix.os }}-nonfree.7z ffmpeg.exe ffprobe.exe ffplay.exe LICENSE
139+
run: 7z a -mx9 ffmpeg-${{ needs.check.outputs.git-sha-short }}-${{ needs.check.outputs.helper-git-sha-short }}-${{ matrix.os }}-nonfree.7z ff{mpeg,probe,play}.exe LICENSE
140140

141141
- name: Upload FFmpeg archive
142142
uses: actions/upload-artifact@v4
@@ -159,8 +159,7 @@ jobs:
159159
- name: Release FFmpeg archives
160160
run: |
161161
gh release create "${{ needs.build.outputs.date-time-after-tag }}-${{ needs.check.outputs.git-sha-short }}-${{ needs.check.outputs.helper-git-sha-short }}" \
162-
"ffmpeg-${{ needs.check.outputs.git-sha-short }}-${{ needs.check.outputs.helper-git-sha-short }}-win64-nonfree.7z" \
163-
"ffmpeg-${{ needs.check.outputs.git-sha-short }}-${{ needs.check.outputs.helper-git-sha-short }}-win32-nonfree.7z" \
162+
ffmpeg-${{ needs.check.outputs.git-sha-short }}-${{ needs.check.outputs.helper-git-sha-short }}-{win64,win32}-nonfree.7z \
164163
-n "FFmpeg nonfree git-${{ needs.check.outputs.git-sha }} in ${{ needs.build.outputs.git-date }} built on ${{ needs.build.outputs.date-time-after }} started at ${{ needs.build.outputs.date-time-before }}
165164
Using ffmpeg-windows-build-helpers git-${{ needs.check.outputs.helper-git-sha }}" \
166165
-t "${{ needs.build.outputs.date-time-after }} ${{ needs.check.outputs.git-sha-short }}"

0 commit comments

Comments
 (0)