Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgotwig committed Apr 27, 2024
1 parent 1a0a73b commit 580ef0e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 86 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/install.yml
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
86 changes: 0 additions & 86 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit 580ef0e

Please sign in to comment.