1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
name: OpenBSD CMake
on:
push:
branches: main
tags-ignore: '*.*'
paths:
- '.github/workflows/cmake-openbsd.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'include/**'
- 'src/*pp'
- 'src/openbsd/*pp'
pull_request:
branches: main
paths:
- '.github/workflows/cmake-openbsd.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'include/**'
- 'src/*pp'
- 'src/openbsd/*pp'
jobs:
build:
name: openbsd-${{ matrix.version}}-${{ matrix.arch}}
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.arch }}-${{ matrix.version }}
cancel-in-progress: true
strategy:
matrix:
arch: ['aarch64', 'x86_64']
version: ['7.8']
steps:
- uses: actions/checkout@v6
- name: Compile
uses: vmactions/openbsd-vm@v1
with:
arch: ${{ matrix.arch }}
release: ${{ matrix.version }}
usesh: true
prepare: pkg_add cmake git ninja
run: |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build --verbose
ctest --test-dir build
|