Skip to content

Fix release versioning: derive package version from git tag #7

Fix release versioning: derive package version from git tag

Fix release versioning: derive package version from git tag #7

Workflow file for this run

name: Build & Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install libcurl (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --parallel
- name: Test
run: ctest --test-dir build --output-on-failure
sbom:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Generate SPDX SBOM
run: python3 scripts/generate-sbom.py > sbom.spdx.json
- name: Upload SBOM
uses: actions/upload-artifact@v4
with:
name: sbom
path: sbom.spdx.json