Skip to content

Commit 3924cac

Browse files
committed
windows build and compiling.md changes
1 parent 2239e6c commit 3924cac

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/windows-build.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ jobs:
1010

1111
env:
1212
CARGO_INCREMENTAL: 0
13-
14-
ffmpeg_ver: "7.0"
13+
ffmpeg_ver: "7.0.2"
1514
ffmpeg_path: "C:/ffmpeg"
16-
vsynth_ver: "R69"
15+
vsynth_ver: "R70"
1716
vsynth_path: "C:/Program Files/Vapoursynth"
1817

1918
steps:
@@ -42,7 +41,17 @@ jobs:
4241
Expand-Archive "$tempFile" "$env:vsynth_path"
4342
4443
- uses: actions/checkout@v4
44+
4545
- uses: Swatinem/rust-cache@v2
46+
with:
47+
prefix-key: "v${{ env.ffmpeg_ver }}-rust"
48+
49+
- name: Get latest commit
50+
id: get_commit
51+
shell: pwsh
52+
run: |
53+
$commit = git log -1 --pretty=format:"%h: %s (%an)"
54+
echo "message=$commit" >> $env:GITHUB_OUTPUT
4655
4756
- name: Av1an build
4857
run: cargo build --release
@@ -52,6 +61,8 @@ jobs:
5261
with:
5362
prerelease: true
5463
tag_name: latest
64+
body: |
65+
Commit:
66+
${{ steps.get_commit.outputs.message }}
5567
files: target/release/av1an.exe
5668
fail_on_unmatched_files: true
57-

site/src/compiling.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,18 @@ If you want to build the binary yourself, you will need the following dependenci
3939
- [The Rust toolchain](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)
4040
- [VapourSynth](https://github.com/vapoursynth/vapoursynth/releases/latest) (download the portable version; the installed version could also work)
4141
- [NASM](https://nasm.us/)
42-
- [FFmpeg](https://github.com/GyanD/codexffmpeg/releases/download/7.0/ffmpeg-7.0-full_build-shared.7z) (thanks to [gyan](https://github.com/GyanD) for providing these builds)
42+
- [FFmpeg](https://github.com/GyanD/codexffmpeg/releases/download/7.0.2/ffmpeg-7.0.2-full_build-shared.7z) (thanks to [gyan](https://github.com/GyanD) for providing these builds)
43+
- [LLVM](https://releases.llvm.org/)
4344

4445
### FFmpeg setup:
45-
- Extract the file `ffmpeg-7.0-full_build-shared.7z` to a directory.
46-
- Create a new environment variable named `FFMPEG_DIR` and set it to the directory path where you extracted `ffmpeg-7.0-full_build-shared.7z`.
47-
- (For example, set `FFMPEG_DIR` to `C:\Users\Username\Downloads\ffmpeg-7.0-full_build-shared`)
46+
- Extract the file `ffmpeg-7.0.2-full_build-shared.7z` to a directory.
47+
- Create a new environment variable named `FFMPEG_DIR` and set it to the directory path where you extracted `ffmpeg-7.0.2-full_build-shared.7z`.
48+
- (For example, set `FFMPEG_DIR` to `C:\Users\Username\Downloads\ffmpeg-7.0.2-full_build-shared`)
4849

4950
### VapourSynth setup:
5051
- Extract the contents of the portable VapourSynth zip file to a directory.
5152
- Create a new environment variable named `VAPOURSYNTH_LIB_DIR` and set it to the directory path where you extracted the file, appending `\sdk\lib64` to the path.
52-
- (For example, set `VAPOURSYNTH_LIB_DIR` to `C:\Users\Username\Downloads\VapourSynth64-Portable-R69\sdk\lib64`)
53+
- (For example, set `VAPOURSYNTH_LIB_DIR` to `C:\Users\Username\Downloads\VapourSynth64-Portable-R70\sdk\lib64`)
5354

5455
Then, either clone the repository by running
5556

@@ -61,4 +62,4 @@ Or download and extract the [source code](https://github.com/master-of-zen/Av1an
6162

6263
Open a command prompt or PowerShell window inside the cloned repository/extracted ZIP folder and run the command `cargo build --release`. If this command executes successfully with no errors, `av1an.exe` will be in the folder `target\release`.
6364

64-
To use `av1an.exe`, copy all the `.dll` files from `ffmpeg-7.0-full_build-shared\bin` to the same directory as `av1an.exe`, and ensure that `ffmpeg.exe` is in a folder accessible via the `PATH` environment variable.
65+
To use `av1an.exe`, copy all the `.dll` files from `ffmpeg-7.0.2-full_build-shared\bin` to the same directory as `av1an.exe`, and ensure that `ffmpeg.exe` is in a folder accessible via the `PATH` environment variable.

0 commit comments

Comments
 (0)