Fix resuming crashes from attempt to subtract with overflow (#1001) #176
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Av1an (Windows x64) | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
build: | |
runs-on: windows-2022 | |
env: | |
CARGO_INCREMENTAL: 0 | |
ffmpeg_ver: "7.1" | |
ffmpeg_path: "C:/ffmpeg" | |
vsynth_ver: "R70" | |
vsynth_path: "C:/Program Files/Vapoursynth" | |
steps: | |
- name: NASM setup | |
uses: ilammy/setup-nasm@v1 | |
with: | |
# version: 2.16.03 | |
from-source: false | |
- name: FFmpeg installation | |
run: | | |
$tempFile = New-TemporaryFile | |
$uri = 'https://github.com/GyanD/codexffmpeg/releases/download/VER/ffmpeg-VER-full_build-shared.7z'.Replace('VER', "$env:ffmpeg_ver") | |
Invoke-WebRequest "$uri" -OutFile "$tempFile" -TimeoutSec 10 | |
7z x -y -o"$env:ffmpeg_path" "$tempFile" | |
- name: FFmpeg environment variable | |
run: | | |
echo "FFMPEG_DIR=$((Get-ChildItem -Directory "$env:ffmpeg_path").FullName)" | Out-File $env:GITHUB_ENV -Append | |
- name: VapourSynth installation | |
run: | | |
$tempFile = New-TemporaryFile | |
$uri = 'https://github.com/vapoursynth/vapoursynth/releases/download/VER/VapourSynth64-Portable-VER.zip'.Replace('VER', "$env:vsynth_ver") | |
Invoke-WebRequest "$uri" -OutFile "$tempFile" -TimeoutSec 10 | |
Expand-Archive "$tempFile" "$env:vsynth_path" | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v${{ env.ffmpeg_ver }}-rust" | |
- name: Get latest commit | |
id: get_commit | |
shell: pwsh | |
run: | | |
$commit = git log -1 --pretty=format:"%h: %s (%an)" | |
echo "message=$commit" >> $env:GITHUB_OUTPUT | |
- name: Av1an build | |
run: cargo build --release | |
- name: Delete existing release | |
continue-on-error: true | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh release delete latest --cleanup-tag | |
- name: Create prerelease | |
uses: softprops/action-gh-release@v2 | |
with: | |
prerelease: true | |
tag_name: latest | |
body: | | |
Commit: | |
${{ steps.get_commit.outputs.message }} | |
files: target/release/av1an.exe | |
fail_on_unmatched_files: true |