forked from MediaArea/RAWcooked
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.72 KB
/
RAWcoocked_Checks.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
name: Checks
on: [push, pull_request]
jobs:
Job:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: OS packets
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
echo "deb https://mediaarea.net/repo/deb/ubuntu $(lsb_release --codename --short)-snapshots main" | sudo tee /etc/apt/sources.list.d/mediaarea-snapshots.list
sudo curl https://repo.mediaarea.net/deb/ubuntu/keyring.gpg -o /etc/apt/trusted.gpg.d/mediaarea-snapshots.gpg
sudo apt-get update
sudo apt-get install -y valgrind ffmpeg-ma
fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew update
brew install coreutils automake
fi
- name: FFmpeg
run: |
cd Project/GNU/CLI
if [ "$RUNNER_OS" == "Linux" ]; then
cp /usr/bin/ffmpeg-ma ffmpeg
fi
if [ "$RUNNER_OS" == "macOS" ]; then
curl -O https://mediaarea.net/download/snapshots/binary/ffmpeg/latest/FFmpeg_Bin_Latest_Mac_Static_x64.zip 2>/dev/null
7za e FFmpeg_Bin_Latest_Mac_Static_x64.zip bin/ffmpeg
fi
- name: Configure
run: |
cd Project/GNU/CLI
sh autogen.sh
./configure
- name: Compile
run: |
cd Project/GNU/CLI
make
- name: Check files
run: |
cd Project/GNU/CLI
make clone_testing_files
- name: Check
run: |
cd Project/GNU/CLI
make check