Skip to content

Commit

Permalink
Merge pull request #52 from jonaski/ci
Browse files Browse the repository at this point in the history
Add FreeBSD and OpenBSD build to CI and dependabot
  • Loading branch information
nicolasfella authored Jan 16, 2025
2 parents 676e20f + d45e92c commit d793451
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: MIT

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,49 @@ jobs:
if: ${{ failure() && matrix.build_type == 'Debug' }}
with:
path: "./build/Testing/Temporary/LastTest.log"

build-freebsd:
name: Build FreeBSD
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build FreeBSD
env:
QT_QPA_PLATFORM: offscreen
uses: vmactions/freebsd-vm@v1.1.7
with:
usesh: true
mem: 4096
envs: 'QT_QPA_PLATFORM'
prepare: pkg install -y git cmake qt6-base qt6-tools
run: |
set -e
git config --global --add safe.directory ${GITHUB_WORKSPACE}
cmake -E make_directory build
cmake -S . -B build -DCMAKE_BUILD_TYPE="Debug" -DKDSingleApplication_QT6=ON -DKDSingleApplication_TESTS=ON
cmake --build build --config Debug --parallel 4
ctest --test-dir build -C Debug --output-on-failure --exclude-regex "tst_stresstest"
build-openbsd:
name: Build OpenBSD
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build OpenBSD
env:
QT_QPA_PLATFORM: offscreen
uses: vmactions/openbsd-vm@v1.1.5
with:
usesh: true
mem: 4096
envs: 'QT_QPA_PLATFORM'
prepare: pkg_add git cmake qt6-qtbase qt6-qttools
run: |
set -e
git config --global --add safe.directory ${GITHUB_WORKSPACE}
cmake -E make_directory build
cmake -S . -B build -DCMAKE_BUILD_TYPE="Debug" -DKDSingleApplication_QT6=ON -DKDSingleApplication_TESTS=ON
cmake --build build --config Debug --parallel 4
ctest --test-dir build -C Debug --output-on-failure --exclude-regex "tst_stresstest"

0 comments on commit d793451

Please sign in to comment.