update build yaml
This commit is contained in:
parent
196d27bf15
commit
299891dab9
|
|
@ -87,20 +87,8 @@ jobs:
|
||||||
# ── Windows dependencies ──
|
# ── Windows dependencies ──
|
||||||
- name: Install dependencies (Windows)
|
- name: Install dependencies (Windows)
|
||||||
if: matrix.platform == 'windows-latest'
|
if: matrix.platform == 'windows-latest'
|
||||||
run: choco install nasm cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
run: choco install cmake llvm --installargs 'ADD_CMAKE_TO_PATH=System' -y
|
||||||
- name: Setup MSVC dev environment (Windows)
|
|
||||||
if: matrix.platform == 'windows-latest'
|
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
|
||||||
|
|
||||||
- name: Add MSYS2 to PATH (Windows)
|
|
||||||
if: matrix.platform == 'windows-latest'
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
# Rename MSYS2's link.exe so it doesn't shadow MSVC's linker
|
|
||||||
Rename-Item "C:\msys64\usr\bin\link.exe" "C:\msys64\usr\bin\link.exe.bak" -ErrorAction SilentlyContinue
|
|
||||||
echo "C:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
||||||
|
|
||||||
# ── Common build steps ──
|
# ── Common build steps ──
|
||||||
- name: Extract version
|
- name: Extract version
|
||||||
|
|
@ -110,11 +98,25 @@ jobs:
|
||||||
VERSION=$(grep '^version' lightningbeam-ui/lightningbeam-editor/Cargo.toml | sed 's/.*"\(.*\)"/\1/')
|
VERSION=$(grep '^version' lightningbeam-ui/lightningbeam-editor/Cargo.toml | sed 's/.*"\(.*\)"/\1/')
|
||||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Enable FFmpeg build from source
|
- name: Enable FFmpeg build from source (Linux/macOS)
|
||||||
|
if: matrix.platform != 'windows-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sed -i.bak 's/ffmpeg-next = { version = "8.0", features = \["static"\] }/ffmpeg-next = { version = "8.0", features = ["build", "static"] }/' lightningbeam-ui/lightningbeam-editor/Cargo.toml
|
sed -i.bak 's/ffmpeg-next = { version = "8.0", features = \["static"\] }/ffmpeg-next = { version = "8.0", features = ["build", "static"] }/' lightningbeam-ui/lightningbeam-editor/Cargo.toml
|
||||||
|
|
||||||
|
- name: Setup FFmpeg (Windows)
|
||||||
|
if: matrix.platform == 'windows-latest'
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
# Download FFmpeg 8.0 shared+dev build (headers + import libs + DLLs)
|
||||||
|
$url = "https://github.com/GyanD/codexffmpeg/releases/download/8.0/ffmpeg-8.0-full_build-shared.7z"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile ffmpeg.7z
|
||||||
|
7z x ffmpeg.7z -offmpeg-win
|
||||||
|
$ffmpegDir = (Get-ChildItem -Path ffmpeg-win -Directory | Select-Object -First 1).FullName
|
||||||
|
echo "FFMPEG_DIR=$ffmpegDir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||||
|
# LLVM/libclang for bindgen
|
||||||
|
echo "LIBCLANG_PATH=C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: Setup icons
|
- name: Setup icons
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -348,6 +350,8 @@ jobs:
|
||||||
New-Item -ItemType Directory -Force -Path $DIST
|
New-Item -ItemType Directory -Force -Path $DIST
|
||||||
Copy-Item "lightningbeam-ui/target/release/lightningbeam-editor.exe" "$DIST/"
|
Copy-Item "lightningbeam-ui/target/release/lightningbeam-editor.exe" "$DIST/"
|
||||||
Copy-Item -Recurse "lightningbeam-ui/target/release/presets" "$DIST/presets"
|
Copy-Item -Recurse "lightningbeam-ui/target/release/presets" "$DIST/presets"
|
||||||
|
# Bundle FFmpeg DLLs (shared build)
|
||||||
|
Copy-Item "$env:FFMPEG_DIR\bin\*.dll" "$DIST/"
|
||||||
Compress-Archive -Path $DIST -DestinationPath "${DIST}.zip"
|
Compress-Archive -Path $DIST -DestinationPath "${DIST}.zip"
|
||||||
|
|
||||||
- name: Collect Windows artifacts
|
- name: Collect Windows artifacts
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue