Skip to content

add ubuntu-22.04

add ubuntu-22.04 #28

Workflow file for this run

name: Package
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: sudo apt install libcunit1-dev
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: ctest -C $BUILD_TYPE
- name: Package
working-directory: ${{github.workspace}}/build
shell: bash
run: cpack -G DEB
- uses: actions/upload-artifact@v4
with:
name: deb
path: ${{github.workspace}}/build/*.deb