File tree 3 files changed +81
-14
lines changed
3 files changed +81
-14
lines changed Original file line number Diff line number Diff line change 37
37
languages : ${{ matrix.language }}
38
38
build-mode : ${{ matrix.build-mode }}
39
39
40
- # These steps install the dependencies needed for the build
41
- - if : matrix.build-mode == 'manual'
42
- name : Install GStreamer
43
- shell : bash
44
- run : sudo apt-get install -y libgstreamer1.0-dev
45
- - if : matrix.build-mode == 'manual'
46
- name : Install GPAC
40
+ # These steps install the dependencies needed for the build
41
+ - name : Install GPAC
42
+ if : matrix.language == 'c-cpp'
47
43
shell : bash
48
44
working-directory : ${{ runner.temp }}
49
45
run : |
@@ -52,15 +48,22 @@ jobs:
52
48
./configure && make -j
53
49
sudo make install
54
50
55
- # This step builds the project.
56
- - if : matrix.build-mode == 'manual'
57
- name : Build
51
+ - name : Install GStreamer
52
+ if : matrix.language == 'c-cpp'
53
+ shell : bash
54
+ run : |
55
+ sudo apt-get update
56
+ sudo apt-get install -y libgstreamer1.0-dev
57
+
58
+ # This step builds the project.
59
+ - name : Build
60
+ if : matrix.language == 'c-cpp'
58
61
shell : bash
59
62
run : |
60
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build
63
+ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release - B build
61
64
cmake --build build -j
62
65
63
- # This step performs the CodeQL analysis.
66
+ # This step performs the CodeQL analysis.
64
67
- name : Perform CodeQL Analysis
65
68
uses : github/codeql-action/analyze@v3
66
69
with :
Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ test :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v4
17
+
18
+ # These steps install the dependencies needed for the build
19
+ - name : Install GPAC
20
+ shell : bash
21
+ working-directory : ${{ runner.temp }}
22
+ run : |
23
+ git clone --depth 1 https://github.com/gpac/gpac.git
24
+ cd gpac
25
+ ./configure && make -j
26
+ sudo make install
27
+
28
+ - name : Install GStreamer
29
+ shell : bash
30
+ run : |
31
+ sudo apt-get update
32
+ sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
33
+
34
+ # This step installs the Rust toolchain
35
+ - name : Install Rust
36
+ uses : actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8
37
+
38
+ # This step installs the dependencies needed for the tests
39
+ - name : Install cmafmux element
40
+ shell : bash
41
+ working-directory : ${{ runner.temp }}
42
+ run : |
43
+ git clone --depth 1 https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
44
+ cd gst-plugins-rs
45
+ cargo install cargo-c
46
+ cargo cbuild -p gst-plugin-fmp4
47
+ cargo cinstall -p gst-plugin-fmp4 --destdir bin
48
+ mkdir -p $HOME/.local/share/gstreamer-1.0/plugins
49
+ cp bin/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/libgstfmp4.so $HOME/.local/share/gstreamer-1.0/plugins/
50
+
51
+ # This step builds the project.
52
+ - name : Build
53
+ shell : bash
54
+ run : |
55
+ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -B build
56
+ cmake --build build -j
57
+
58
+ # Run the tests
59
+ - name : Test
60
+ shell : bash
61
+ env :
62
+ GST_PLUGIN_PATH : ${{ github.workspace}}/build:$HOME/.local/share/gstreamer-1.0/plugins
63
+ GST_DEBUG : 3
64
+ run : ./build/tests/gstgpacplugin_test
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ endif()
15
15
include (FetchContent)
16
16
FetchContent_Declare(
17
17
googletest
18
- URL https://github.com/google/googletest/archive/2b6b042a77446ff322cd7522ca068d9f2a21c1d1.zip
19
- DOWNLOAD_EXTRACT_TIMESTAMP
18
+ GIT_REPOSITORY https://github.com/google/googletest.git
19
+ GIT_TAG 2b6b042a77446ff322cd7522ca068d9f2a21c1d1
20
20
)
21
21
22
22
# For Windows: Prevent overriding the parent project's compiler/linker settings
You can’t perform that action at this time.
0 commit comments