Skip to content

Update .gitignore

Update .gitignore #7

Workflow file for this run

name: Build and Release Packages
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: amd64
docker_image: ubuntu:22.04
dpkg_arch: amd64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
libwebsockets-dev \
libcjson-dev \
libssl-dev \
dpkg-dev \
doxygen \
graphviz
- name: Build library
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON ..
make -j$(nproc)
- name: Generate Doxygen documentation
run: |
cd build
make doc
continue-on-error: true
- name: Check built artifacts
run: |
cd build
echo "=== Built Executables ==="
if [ -f test ]; then echo "✓ Test executable built"; fi
if [ -f obsws_example ]; then echo "✓ Example executable built"; fi
echo ""
echo "=== Compiled Objects and Libraries ==="
find . -maxdepth 2 -type f \( -name "*.o" -o -name "*.a" -o -name "*.so" \) | sort
- name: Skip OBS tests (setup later)
run: |
echo "Tests built but not executed - OBS server setup required"
echo "Tests will be integrated when remote OBS server is available"
continue-on-error: true
- name: Create .deb package
run: |
cd build
cpack -G DEB -V
- name: Create source archives
run: |
cd build
cpack --config CPackSourceConfig.cmake -G TGZ
cpack --config CPackSourceConfig.cmake -G ZIP
- name: Generate checksums
run: |
cd build
sha256sum libwsv5_*.deb libwsv5_*.tar.gz libwsv5_*.zip > SHA256SUMS 2>/dev/null || true
cat SHA256SUMS
- name: List artifacts
run: |
cd build
echo "=== Artifacts ==="
ls -lh libwsv5_*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libwsv5-packages
path: build/libwsv5_*
- name: Upload documentation
uses: actions/upload-artifact@v4
with:
name: libwsv5-docs
path: build/doc/html/
if: hashFiles('build/doc/html/*') != ''
continue-on-error: true
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: |
build/libwsv5_*.deb
build/libwsv5_*.tar.gz
build/libwsv5_*.zip
build/SHA256SUMS
draft: false
prerelease: false
body_path: .github/RELEASE_TEMPLATE.md
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}