Repository navigation
82 lines (72 loc) · 2.09 KB
/
Copy pathpython-app.yml
File metadata and controls
82 lines (72 loc) · 2.09 KB
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
name: DDMonitor Build
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install Packages
run: pip install -r requirements.txt
- name: Build
run: "scripts/build_linux.sh"
- name: Archive Build
uses: actions/upload-artifact@v2
with:
name: ddmonitor-linux-build
path: dist/DDMonitor
build-windows:
runs-on: windows-latest
env:
PYTHON_VLC_MODULE_PATH: ${{github.workspace}}\\vlc-3.0.12
PYTHON_VLC_LIB_PATH: ${{github.workspace}}\\vlc-3.0.12\\libvlc.dll
steps:
- uses: actions/checkout@v2
- uses: suisei-cn/actions-download-file@v1
id: downloadVLC
name: Download VLC
with:
url: "https://download.videolan.org/pub/videolan/vlc/last/win64/vlc-3.0.12-win64.zip"
target: .
- name: Extract VLC
run: |
powershell.exe Expand-Archive -Path vlc-3.0.12-win64.zip -DestinationPath .
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install Packages
run: pip install -r requirements.txt
- name: Build
run: "scripts/build_win.bat"
- name: Archive Build
uses: actions/upload-artifact@v2
with:
name: ddmonitor-windows-build
path: dist/DDMonitor
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install Packages
run: pip install -r requirements.txt
- name: Build
run: "scripts/build_macos.sh"
- name: Archive Build
uses: actions/upload-artifact@v2
with:
name: ddmonitor-macos-build
path: dist/DDMonitor