Skip to content

Commit

Permalink
WIP github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheeo committed Sep 10, 2024
1 parent 6afe6d6 commit 77a2920
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and test
on:
push:
branches: [ "wip_actions" ]
pull_request:
branches: [ "wip_actions" ]

jobs:
build:
runs-on: ubuntu-24.04
container: archlinux:base-devel
steps:
- name: install-dependencies
run: |
sudo pacman -Syu --noconfirm cmake git git-lfs boost boost-libs doxygen nodejs node-gyp gtest yarn ffmpeg nlohmann-json
sudo corepack enable
- uses: actions/checkout@v4
with:
path: ./src
submodules: recursive
- name: build-debug
run: |
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_JS=On -DXCMAKE_CLANG_TIDY=OFF -DXCMAKE_SYSTEM_GTEST=ON -DXCMAKE_DOXYGEN_WERROR=OFF -DCMAKE_INSTALL_PREFIX=inst -Bbuild src
make -C build install -j$(nproc)
- name: build-release
run: |
rm -rf build inst
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_JS=On -DXCMAKE_PACKAGING=On -DXCMAKE_CLANG_TIDY=OFF -DXCMAKE_SYSTEM_GTEST=ON -DXCMAKE_DOXYGEN_WERROR=Off -DCMAKE_INSTALL_PREFIX=inst -Bbuild src
make -C build install package -j$(nproc)
tar tf build/*.tar.gz
# Check package contents.
tar tf build/*.tar.gz | grep -qE '^spectral-live-video-streamer/bin/live-video-streamer-server$'
tar tf build/*.tar.gz | grep -qE '^SpectralLiveVideoStreamer/share/spectral-video-streamer/demo-client/index[.]html$'
tar tf build/*.tar.gz | grep -qE '^SpectralLiveVideoStreamer/share/spectral-video-streamer/client/live-video-streamer-client[.]js$'
tar tf build/*.tar.gz | grep -qE '^SpectralLiveVideoStreamer/share/spectral-video-streamer/client/live-video-streamer-client[.]d[.]ts$'
! tar tf build/*.tar.gz | grep -qE '([.]map|/asset-manifest[.]json)$'

0 comments on commit 77a2920

Please sign in to comment.