Test installation on Ubuntu24 #132
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test installation on Ubuntu24 | |
| on: | |
| schedule: | |
| - cron: '0 12 * * *' | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| jobs: | |
| install-dlstreamer: | |
| name: Test DLStreamer installation | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Setup runner details | |
| run: | | |
| echo "Hostname: $(hostname)" | |
| echo "CPU Name: $(lscpu | grep 'Model name' | sed 's/Model name:[ \t]*//')" | |
| echo "OS Type: $(uname -o)" | |
| echo "OS codename: $(lsb_release -sc)" | |
| echo "Kernel Version: $(uname -r)" | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2 | |
| with: | |
| path: dlstreamer-repo | |
| - name: Install prerequisites using DLS_install_prerequisites.sh | |
| run: | | |
| chmod +x dlstreamer-repo/scripts/DLS_install_prerequisites.sh | |
| ./dlstreamer-repo/scripts/DLS_install_prerequisites.sh | |
| - name: Setup repositories | |
| run: | | |
| sudo -E wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | |
| sudo wget -O- https://eci.intel.com/sed-repos/gpg-keys/GPG-PUB-KEY-INTEL-SED.gpg | sudo tee /usr/share/keyrings/sed-archive-keyring.gpg > /dev/null | |
| sudo echo "deb [signed-by=/usr/share/keyrings/sed-archive-keyring.gpg] https://eci.intel.com/sed-repos/$(source /etc/os-release && echo $VERSION_CODENAME) sed main" | sudo tee /etc/apt/sources.list.d/sed.list | |
| sudo bash -c 'echo -e "Package: *\nPin: origin eci.intel.com\nPin-Priority: 1000" > /etc/apt/preferences.d/sed' | |
| sudo bash -c 'echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/openvino/2025 ubuntu24 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2025.list' | |
| - name: Install DLStreamer | |
| run: | | |
| sudo apt update | |
| sudo apt-get install intel-dlstreamer | |
| - name: Test hello_dlstreamer script | |
| run: | | |
| mkdir -p dlstreamer-repo/test_hello_dlstreamer | |
| cd dlstreamer-repo/test_hello_dlstreamer | |
| /opt/intel/dlstreamer/scripts/hello_dlstreamer.sh file | |
| OUTPUT_FILE_FOUND=0 | |
| for file in *.mp4; do | |
| # Check if the file exists and is at least 1kB in size | |
| if [[ -f "$file" && $(stat --printf="%s" "$file") -ge 1024 ]]; then | |
| echo "Valid .mp4 file found: $file" | |
| OUTPUT_FILE_FOUND=1 | |
| fi | |
| done | |
| if [[ $OUTPUT_FILE_FOUND -eq 0 ]]; then | |
| echo "No .mp4 file(s) found or it has less than 1kB size." | |
| exit 1 | |
| fi | |
| - name: Upload hello_dlstreamer output video | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #4.6.2 | |
| if: always() | |
| with: | |
| name: hello_dlstreamer_output_video | |
| path: dlstreamer-repo/test_hello_dlstreamer |