Skip to content

Commit dd78ed2

Browse files
committed
use cmake to build an run test
This does it in a cross platform manor.
1 parent 914cb55 commit dd78ed2

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
cmake-crypto-enable: "-DENABLE_MBEDTLS=ON"
3232

3333
runs-on: ${{ matrix.os }}
34-
34+
3535
env:
3636
CTEST_OUTPUT_ON_FAILURE: 1
3737

@@ -41,23 +41,23 @@ jobs:
4141
run: |
4242
sudo apt-get update
4343
sudo apt-get install libnss3-dev
44-
44+
4545
- name: Setup Ubuntu MbedTLS
4646
if: matrix.os == 'ubuntu-20.04' && matrix.crypto == 'mbedtls'
4747
run: sudo apt-get install libmbedtls-dev
48-
48+
4949
- name: Setup macOS OpenSSL
5050
if: matrix.os == 'macos-latest' && matrix.crypto == 'openssl'
5151
run: echo "cmake-crypto-dir=-DOPENSSL_ROOT_DIR=$(brew --prefix [email protected])" >> $GITHUB_ENV
52-
52+
5353
- name: Setup macOS NSS
5454
if: matrix.os == 'macos-latest' && matrix.crypto == 'nss'
5555
run: brew install nss
56-
56+
5757
- name: Setup macOS MbedTLS
5858
if: matrix.os == 'macos-latest' && matrix.crypto == 'mbedtls'
5959
run: brew install mbedtls
60-
60+
6161
- uses: actions/checkout@v2
6262

6363
- name: Create Build Environment
@@ -82,6 +82,5 @@ jobs:
8282
working-directory: ${{github.workspace}}/build
8383
shell: bash
8484
run: |
85-
make clean
86-
make C_FLAGS="-DSRTP_NO_STREAM_LIST -DSRTP_USE_TEST_STREAM_LIST" srtp_driver
87-
./srtp_driver -v
85+
cmake --build . --clean-first -t srtp_driver -- C_FLAGS="-DSRTP_NO_STREAM_LIST -DSRTP_USE_TEST_STREAM_LIST"
86+
ctest -R srtp_driver

0 commit comments

Comments
 (0)