-
Notifications
You must be signed in to change notification settings - Fork 12
98 lines (89 loc) · 4.18 KB
/
install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: 💿 Install Vidmerger
on: [push, workflow_dispatch]
jobs:
# --- ❗️ X64 ---
install-x64-macos-homebrew:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Vidmerger
run: |
brew tap tgotwig/vidmerger
brew install vidmerger
- name: Verify installation
run: |
ffmpeg -version
vidmerger --version
# 🔎 Check if version from Cargo.toml matches with binary
[[ $(grep -o '^version = ".*"' Cargo.toml | awk -F'"' '{print $2}') == $(vidmerger -V | awk '{print $2}') ]] && echo "Versions match" || { echo "Versions do not match"; exit 1; }
install-x64-linux-homebrew:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install Vidmerger
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew --help
brew tap tgotwig/linux-vidmerger
brew install vidmerger
- name: Verify installation
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
ffmpeg -version
vidmerger --version
# 🔎 Check if version from Cargo.toml matches with binary
[[ $(grep -o '^version = ".*"' Cargo.toml | awk -F'"' '{print $2}') == $(vidmerger -V | awk '{print $2}') ]] && echo "Versions match" || { echo "Versions do not match"; exit 1; }
install-x64-linux-curl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vidmerger
run: |
sudo curl -L https://github.com/TGotwig/vidmerger/releases/latest/download/vidmerger-linux.tar.gz -o /tmp/vidmerger-linux.tar.gz && sudo tar -xzvf /tmp/vidmerger-linux.tar.gz -C /usr/local/bin
- name: Verify installation
run: |
vidmerger --version
# 🔎 Check if version from Cargo.toml matches with binary
[[ $(grep -o '^version = ".*"' Cargo.toml | awk -F'"' '{print $2}') == $(vidmerger -V | awk '{print $2}') ]] && echo "Versions match" || { echo "Versions do not match"; exit 1; }
install-x64-windows-chocolatey:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Vidmerger
run: |
choco install vidmerger
- name: Verify installation
run: |
vidmerger --version
# 🔎 Check if version from Cargo.toml matches with binary
if ((Select-String -Path .\Cargo.toml -Pattern 'version = "(.*)"' | ForEach-Object { $_.Matches.Groups[1].Value }) -eq (vidmerger -V | ForEach-Object { $_ -split ' ' })[1]) { Write-Output "Versions match" } else { Write-Output "Versions do not match"; exit 1 }
# --- ❗️ ARM64 ---
install-arm64-macos-homebrew:
runs-on: ARM64
steps:
- uses: actions/checkout@v3
- name: Install Vidmerger
run: |
brew tap tgotwig/vidmerger
brew install vidmerger
- name: Verify installation
run: |
ffmpeg -version
vidmerger --version
# 🔎 Check if version from Cargo.toml matches with binary
[[ $(grep -o '^version = ".*"' Cargo.toml | awk -F'"' '{print $2}') == $(vidmerger -V | awk '{print $2}') ]] && echo "Versions match" || { echo "Versions do not match"; exit 1; }
install-arm64-linux-curl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pguyot/arm-runner-action@v2
with:
base_image: raspios_lite_arm64:latest
commands: |
sudo curl -L https://github.com/tgotwig/vidmerger/releases/download/0.3.2/vidmerger-linux-arm64.tar.gz -o /tmp/vidmerger-linux-arm64.tar.gz && sudo tar -xzvf /tmp/vidmerger-linux-arm64.tar.gz -C /usr/local/bin
vidmerger --version
# 🔎 Check if version from Cargo.toml matches with binary
version_cargo=$(grep -o '^version = ".*"' Cargo.toml | awk -F'"' '{print $2}') && version_vidmerger=$(vidmerger -V | awk '{print $2}') && [ "$version_cargo" = "$version_vidmerger" ] && echo "Versions match" || { echo "Versions do not match"; exit 1; }