Update INSTALL for linux #159
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
linux-build: | |
strategy: | |
matrix: | |
cc: [ gcc, clang ] | |
runs-on: ubuntu-24.04 | |
env: | |
CC: ${{ matrix.cc }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: install prerequisites | |
run: sudo apt-get install -y ${{ matrix.cc }} git2cl gtk-doc-tools w3-dtd-mathml libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good | |
- name: autogen | |
run: ./autogen.sh | |
- name: make | |
run: make | |
- name: make check | |
run: make check | |
- name: make distcheck | |
run: make distcheck | |
- if: ${{ matrix.cc == 'gcc' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tarball | |
path: gstpeaq-*.tar.gz | |
windows-build: | |
strategy: | |
matrix: | |
include: | |
- arch: x86_64 | |
platform: x64 | |
- arch: x86 | |
platform: win32 | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Install prerequisites | |
shell: cmd | |
run: | | |
curl --location https://gstreamer.freedesktop.org/data/pkg/windows/1.24.5/msvc/gstreamer-1.0-msvc-${{ matrix.arch }}-1.24.5.msi --output gstreamer.msi | |
curl --location https://gstreamer.freedesktop.org/data/pkg/windows/1.24.5/msvc/gstreamer-1.0-devel-msvc-${{ matrix.arch }}-1.24.5.msi --output gstreamer-devel.msi | |
msiexec /quiet /i gstreamer.msi | |
msiexec /quiet /i gstreamer-devel.msi | |
del gstreamer.msi | |
del gstreamer-devel.msi | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build | |
env: | |
GSTREAMER_1_0_ROOT_MSVC_X86_64: d:\gstreamer\1.0\msvc_x86_64 | |
GSTREAMER_1_0_ROOT_MSVC_X86: d:\gstreamer\1.0\msvc_x86 | |
run: | | |
msbuild vs/gstpeaq.sln -property:Configuration=Release -property:Platform=${{ matrix.platform }} | |
msbuild vs/testpeaq.vcxproj -property:Configuration=Release -property:Platform=${{ matrix.platform }} | |
- name: Run tests | |
env: | |
GSTREAMER_1_0_ROOT_MSVC_X86_64: d:\gstreamer\1.0\msvc_x86_64 | |
GSTREAMER_1_0_ROOT_MSVC_X86: d:\gstreamer\1.0\msvc_x86 | |
shell: powershell | |
run: | | |
$Env:Path = "$Env:Path;d:\gstreamer\1.0\msvc_${{ matrix.arch }}\bin;" | |
.\vs\${{ matrix.platform }}\Release\testpeaq | |
if ($LASTEXITCODE -ne 0) { | |
throw "test failure" | |
} | |
.\vs\runtest-${{ matrix.platform }}.ps1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: binaries-win-${{ matrix.arch }} | |
path: | | |
vs/${{ matrix.platform }}/Release/peaq.exe | |
vs/${{ matrix.platform }}/Release/gstpeaq.dll |