Skip to content

Prepare for v0.17.3 release #642

Prepare for v0.17.3 release

Prepare for v0.17.3 release #642

Workflow file for this run

on: [push]
name: windows
jobs:
build:
runs-on: windows-latest
timeout-minutes: 100
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
with:
path-type: inherit
update: true
install: base-devel autotools mingw-w64-x86_64-toolchain mingw-w64-x86_64-rust mingw-w64-ucrt-x86_64-gcc
- uses: taiki-e/install-action@cargo-hack
# The executables installed by choco are not available on the PATH in the current shell.
# In normal use you would restart your shell, but a GitHub action is all run in the same shell,
# so we need to add to the path explicitly.
- name: install GPAC/MP4Box
run: |
choco install --yes --limit-output gpac
echo "C:\Program Files\GPAC" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# The ffmpeg executable is installed at C:\ProgramData\chocolatey\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe
# A shim is created at C:\ProgramData\chocolatey\bin\ffmpeg.exe.
- name: install ffmpeg
run: |
choco install --yes --limit-output ffmpeg
echo "C:\ProgramData\chocolatey\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: install mkvmerge
run: |
choco install --yes --limit-output mkvtoolnix
echo "C:\Program Files\MKVToolNix" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# Isn't this fun
- name: install Bento4/mp4decrypt
run: |
Invoke-WebRequest -Uri "https://www.bok.net/Bento4/binaries/Bento4-SDK-1-6-0-641.x86_64-microsoft-win32.zip" -OutFile bento4.zip
Expand-Archive -Path bento4.zip -DestinationPath .
Get-ChildItem
del bento4.zip
New-Item -ItemType Directory -Force -Path "C:\tools"
cp Bento4-SDK-1-6-0-641.x86_64-microsoft-win32/bin/mp4decrypt.exe "C:\tools\mp4decrypt.exe"
Remove-Item -LiteralPath "Bento4-SDK-1-6-0-641.x86_64-microsoft-win32" -Force -Recurse
echo "C:\tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Get-ChildItem c:\tools
- name: Install shaka-packager
run: |
Invoke-WebRequest -Uri "https://github.com/shaka-project/shaka-packager/releases/latest/download/packager-win-x64.exe" -OutFile c:\tools\shaka-packager.exe
- name: install xsltproc
run: choco install --yes --limit-output xsltproc
- name: install protobuf compiler
run: choco install --yes --limit-output protoc
- name: install mediainfo (CLI)
run: choco install --yes --limit-output mediainfo-cli
- run: cargo hack check --feature-powerset --exclude-features libav --no-dev-deps
shell: msys2 {0}
- run: cargo build
shell: msys2 {0}
- run: cargo test --verbose --no-run
shell: msys2 {0}
- run: cargo test -- --show-output
shell: msys2 {0}