Workflow file for this run
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
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' | ||
Check failure on line 35 in .github/workflows/install.yml GitHub Actions / Install VidmergerInvalid workflow file
|
||
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 |