Update version to 0.6.3 #211
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
############################################################################## | |
# Copyright 2022-2025 Leon Lynch | |
# | |
# This file is licensed under the terms of the LGPL v2.1 license. | |
# See LICENSE file. | |
############################################################################## | |
name: Ubuntu build | |
on: [push] | |
jobs: | |
build-ubuntu-debug: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { name: "Ubuntu 22.04", os: ubuntu-22.04 } | |
- { name: "Ubuntu 24.04", os: ubuntu-24.04 } | |
name: ${{ matrix.name }} build (static/debug) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libmbedtls-dev | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- run: git describe --always --dirty | |
- name: Configure CMake | |
run: cmake -B build -DCMAKE_BUILD_TYPE="Debug" | |
- name: Build | |
run: cmake --build build | |
- name: Test | |
run: ctest --test-dir build --output-on-failure | |
build-ubuntu-legacy-release: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { name: "Ubuntu 20.04", os: ubuntu-20.04, container: "ubuntu:20.04", ubuntu_release_name: "focal" } | |
name: ${{ matrix.name }} build (release) | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
steps: | |
- name: Prepare container | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get install -y git build-essential cmake file | |
- name: Install dependencies | |
run: | | |
apt-get install -y libmbedtls-dev bash-completion doxygen | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
# Container user doesn't match runner user | |
# Github has only fixed https://github.com/actions/checkout/issues/760 | |
# not https://github.com/actions/checkout/issues/766 | |
- name: Configure Git | |
if: ${{ matrix.container != null }} | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git describe --always --dirty | |
- name: Get version from git tag | |
run: echo "GIT_DESCRIBE=$(git describe --always --dirty)" >> $GITHUB_ENV | |
- name: Configure CMake | |
# CPACK_DEBIAN_PACKAGE_RELEASE augments the package version for the | |
# intended Ubuntu release. The ppa1 component indicates that this is not | |
# an official Ubuntu package. The release name component indicates that | |
# this is for the specific Ubuntu release that has that name. | |
run: | | |
cmake -B build \ | |
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DBUILD_SHARED_LIBS=YES \ | |
-DBUILD_DOCS=YES \ | |
-DCPACK_COMPONENTS_GROUPING=ALL_COMPONENTS_IN_ONE \ | |
-DCPACK_DEBIAN_PACKAGE_RELEASE="0ubuntu1~ppa1~${{ matrix.ubuntu_release_name }}1" | |
- name: Build | |
run: cmake --build build | |
- name: Test | |
run: cmake --build build --target test | |
- name: Package | |
run: cmake --build build --target package | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tr31-${{ env.GIT_DESCRIBE }}-${{ matrix.os }} | |
path: build/tr31_*.deb | |
if-no-files-found: error | |
build-ubuntu-release: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { name: "Ubuntu 22.04", os: ubuntu-22.04, ubuntu_release_name: "jammy" } | |
- { name: "Ubuntu 24.04", os: ubuntu-24.04, ubuntu_release_name: "noble" } | |
name: ${{ matrix.name }} build (release) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libmbedtls-dev doxygen | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Get version from git tag | |
run: echo "GIT_DESCRIBE=$(git describe --always --dirty)" >> $GITHUB_ENV | |
- name: Configure CMake | |
# CPACK_DEBIAN_PACKAGE_RELEASE augments the package version for the | |
# intended Ubuntu release. The ppa1 component indicates that this is not | |
# an official Ubuntu package. The release name component indicates that | |
# this is for the specific Ubuntu release that has that name. | |
run: | | |
cmake -B build \ | |
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DBUILD_SHARED_LIBS=YES \ | |
-DBUILD_DOCS=YES \ | |
-DCPACK_COMPONENTS_GROUPING=ALL_COMPONENTS_IN_ONE \ | |
-DCPACK_DEBIAN_PACKAGE_RELEASE="0ubuntu1~ppa1~${{ matrix.ubuntu_release_name }}1" | |
- name: Build | |
run: cmake --build build | |
- name: Test | |
run: ctest --test-dir build --output-on-failure | |
- name: Package | |
run: cmake --build build --target package | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tr31-${{ env.GIT_DESCRIBE }}-${{ matrix.os }} | |
path: build/tr31_*.deb | |
if-no-files-found: error |