-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (74 loc) · 3.04 KB
/
gst.yaml
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: GStreamer Build
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build:
strategy:
matrix:
config:
- { os: macos-latest, arch: x64, cache_dir: '~/dragonfly', build_dir: '~/build', name: macos-x64 }
- { os: windows-latest, arch: x64, cache_dir: 'C:/Dragonfly', build_dir: 'c:/build', name: windows-x64 }
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache Downloads
id: cache-downloads
uses: actions/cache@v3
with:
path: ${{ matrix.config.cache_dir }}
key: ${{ matrix.config.name }}-dragonfly-1
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
if: matrix.config.os == 'windows-latest'
- name: Setup .NET Core SDK 5.0
uses: actions/[email protected]
with:
dotnet-version: "5.0.x"
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- name: Install Deps
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} install_deps
- name: Install GStreamer
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} install_gst_pkg
- name: Clone GStreamer
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} clone_gst
- name: Configure GStreamer
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} configure_gst
- name: Build GStreamer
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} build_gst
- name: Build Custom GStreamer.Sharp
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} build_gst_sharp
- name: Install Custom GStreamer.Sharp
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} install_gst
- name: Create Nuget Package
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} create_nuget_package
- name: Push nuget
run: python3 build.py -b ${{ matrix.config.build_dir }} -c ${{ matrix.config.cache_dir }} push_nuget_package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/main'
- uses: actions/delete-package-versions@v3
with:
package-name: 'Fluendo.GStreamer.Sharp.win-x64'
min-versions-to-keep: 5
- uses: actions/delete-package-versions@v3
with:
package-name: 'Fluendo.GStreamer.Sharp.osx'
min-versions-to-keep: 5
- uses: actions/delete-package-versions@v3
with:
package-name: 'Fluendo.GStreamer.Sharp'
min-versions-to-keep: 5