This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
76 lines (66 loc) · 2.34 KB
/
ci.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
name: MPV
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_linux:
name: MPV Windows
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: recursive
- name: Install Packages
run: |
sudo -E apt-get -qy update
sudo -E apt-get -m -y install build-essential checkinstall bison flex gettext git mercurial subversion ninja-build gyp cmake yasm nasm automake pkg-config libtool libtool-bin gcc-multilib g++-multilib libgmp-dev libmpfr-dev libmpc-dev libgcrypt-dev gperf ragel texinfo autopoint re2c asciidoc docbook2x unzip p7zip-full curl python3-pip libjpeg-dev zlib1g-dev po4a tree
sudo pip3 install rst2pdf meson mako
- name: Configure Git
run: |
git config --global core.fileMode false
git config --global user.name "Hitesh Kumar Saini"
git config --global user.email "alexmercerind@gmail.com"
- name: Configure CMake Build
continue-on-error: true
run: |
mkdir build64 && cd build64
cmake -DTARGET_ARCH=x86_64-w64-mingw32 -G Ninja ..
- name: Build Toolchain
continue-on-error: true
run: |
cd build64
ninja gcc
- name: Build MPV
continue-on-error: true
run: |
cd build64
ninja mpv
- name: Tree
continue-on-error: true
run: |
tree
- name: FFmpeg Configure Logging
continue-on-error: true
run: |
cat /home/runner/work/harmonoid-custom-codec/harmonoid-custom-codec/build64/packages/ffmpeg-prefix/src/ffmpeg-stamp/ffmpeg-configure-*.log
- name: MPV Configure Logging
continue-on-error: true
run: |
cat /home/runner/work/harmonoid-custom-codec/harmonoid-custom-codec/build64/packages/mpv-prefix/src/mpv-stamp/mpv-configure-*.log
- name: Upload Binaries
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: false
body: ""
tag_name: "vnext"
files: |
build64/mpv-dev-x86_64*/*
build64/mpv-debug-x86_64*/*
build64/mpv-x86_64*/*
token: ${{ secrets.ACCESS_TOKEN }}