-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Install Vidmerger | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies (Linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget | ||
- name: Install dependencies (MacOS) | ||
if: runner.os == 'macos' | ||
run: | | ||
brew install wget | ||
- name: Install dependencies (Windows) | ||
if: runner.os == 'windows' | ||
run: | | ||
# Install Chocolatey package manager (one-time setup) | ||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::Expect100Continue = $false; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) -NoProfile -AllowUntrustedRepos; choco config add source chocolateycommunity | ||
# Install dependencies using Chocolatey | ||
choco install curl | ||
- name: Download Vidmerger (Linux-ARM) | ||
if: runner.os == 'Linux' && architecture == 'arm64' | ||
run: | | ||
sudo wget -c https://github.com/bonny1992/vidmerger/releases/latest/download/vidmerger-linux-arm64.tar.gz -P /tmp && sudo tar -xzvf /tmp/vidmerger-linux-arm64.tar.gz -C /usr/local/bin | ||
- name: Download Vidmerger (Linux-x86) | ||
if: runner.os == 'Linux' && architecture != 'arm64' | ||
run: | | ||
sudo wget -c https://github.com/TGotwig/vidmerger/releases/latest/download/vidmerger-linux.tar.gz -P /tmp && sudo tar -xzvf /tmp/vidmerger-linux.tar.gz -C /usr/local/bin | ||
- name: Download Vidmerger (MacOS) | ||
if: runner.os == 'macos' | ||
run: | | ||
brew tap tgotwig/vidmerger | ||
brew install vidmerger | ||
- name: Download Vidmerger (Windows) | ||
if: runner.os == 'windows' | ||
run: | | ||
curl -L https://github.com/TGotwig/vidmerger/releases/latest/download/vidmerger.exe -o C:\vidmerger.exe | ||
- name: Add Vidmerger to PATH (Windows) | ||
if: runner.os == 'windows' | ||
run: | | ||
echo "C:\vidmerger.exe" >> $env:PATH # Add download directory to PATH | ||
- name: Verify installation | ||
run: | | ||
vidmerger --version |
This file was deleted.
Oops, something went wrong.