Skip to content

dotnet-ci.yml, release.yaml: update GHA versions #40

dotnet-ci.yml, release.yaml: update GHA versions

dotnet-ci.yml, release.yaml: update GHA versions #40

Workflow file for this run

name: OKEGui Release
on:
push:
tags: "[0-9]*"
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.17'
- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE
- name: Clone & Build eac3to-wrapper
shell: bash
run: |
git clone https://github.com/AkarinVS/eac3to-wrapper
cd eac3to-wrapper
go build -ldflags "-X main.version=$(git describe --tags)"
cd ..
- name: Restore packages
run: msbuild.exe OKEGui/OKEGui.sln /t:Restore /p:RestorePackagesConfig=True
- name: Build Solution
run: |
msbuild.exe OKEGui/OKEGui.sln /nologo /t:OKEGui /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release"
- name: Integrate tools pack from previous release
shell: bash
run: |
set -ex
curl -s -o tools.zip -L https://github.com/vcb-s/OKEGui/releases/download/8.7.1/OKEGui-v8.7.1.zip
7z x -otmp tools.zip
# clean up unnecessary files
rm -f tmp/OKEGui/tools/x26x/*
# tweak mkvtoolnix setting
sed -i -e 's|chapterNameTemplate=.*|chapterNameTemplate=Chapter <NUM:2>|g' tmp/OKEGui/tools/mkvtoolnix/mkvtoolnix-gui.ini
sed -i -e 's|updates\\checkForUpdates=true|updates\\checkForUpdates=false|g' tmp/OKEGui/tools/mkvtoolnix/mkvtoolnix-gui.ini
sed -i -e 's|useLegacyFontMIMETypes=false|useLegacyFontMIMETypes=true|g' tmp/OKEGui/tools/mkvtoolnix/mkvtoolnix-gui.ini
# update eac3to's libdcadec.dll, see https://forum.videohelp.com/threads/400707-UsEac3to-1-3-0-DTS-HD-MA-to-FLAC#post2651323
curl -s -o dcadec.zip -L https://github.com/foo86/dcadec/releases/download/v0.2.0/dcadec-0.2.0-win32.zip
7z x -odcadec dcadec.zip
mv dcadec/libdcadec.dll tmp/OKEGui/tools/eac3to/libdcadec.dll
# integrate into release
mv tmp/OKEGui/tools "./OKEGui/OKEGui/bin/Release/"
rm -rf tmp
- name: Integrate eac3to-wrapper
shell: bash
run: |
mkdir -p "./OKEGui/OKEGui/bin/Release/tools/eac3to"
cp eac3to-wrapper/eac3to-wrapper.exe "./OKEGui/OKEGui/bin/Release/tools/eac3to"
- name: Integrate x264 tmod and x265 Yuuki
shell: bash
run: |
set -ex
mkdir -p "./OKEGui/OKEGui/bin/Release/tools/x26x"
#
curl -s -o x264.7z -L https://github.com/jpsdr/x264/releases/download/r3075/x264_tmod_r3075.7z
7z x -otmp x264.7z
cp -a tmp/posix/x264_x64.exe "./OKEGui/OKEGui/bin/Release/tools/x26x/x264.exe"
rm -rf tmp
#
curl -s -o x265.7z -L https://github.com/AmusementClub/x265/releases/download/Kyouko-3.5-AC2/x265-win64-skylake-clang.Kyouko-3.5-AC2.7z
7z x -otmp x265.7z
cp -a tmp/x265.exe "./OKEGui/OKEGui/bin/Release/tools/x26x/x265.exe"
rm -rf tmp
- name: Integrate RP-Checker
shell: bash
run: |
set -ex
mkdir -p "./OKEGui/OKEGui/bin/Release/tools/rpc"
#
curl -s -o RPChecker.exe -L https://github.com/vcb-s/rp-checker/releases/download/1.0.7.2/RPChecker.exe
mv RPChecker.exe "./OKEGui/OKEGui/bin/Release/tools/rpc/"
#
curl -s -o RpcTemplate.vpy https://raw.githubusercontent.com/AmusementClub/vapoursynth-script/master/RpcTemplate.vpy
mv "./OKEGui/OKEGui/bin/Release/tools/rpc/RpcTemplate.vpy" "./OKEGui/OKEGui/bin/Release/tools/rpc/RpcTemplate.vpy.old"
mv RpcTemplate.vpy "./OKEGui/OKEGui/bin/Release/tools/rpc/"
- name: Package release
shell: bash
run: |
git clone https://github.com/AkarinVS/exe
export PATH=`pwd`/exe/:$PATH
cp -r dist/windows/examples ./OKEGui/OKEGui/bin/Release
pushd ./OKEGui/OKEGui/bin
mv Release OKEGui
zip -9r ../../../"OKEGui-v$(git describe --tags).zip" OKEGui
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: release
path: |
OKEGui-*.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
files: OKEGui-*.zip
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}