mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-28 14:45:51 +00:00
77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
name: Build (Tier 2 platforms)
|
|
|
|
# Manually triggered
|
|
on: [workflow_dispatch]
|
|
|
|
env:
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
BUILD_TYPE: RelWithDebInfo
|
|
|
|
|
|
jobs:
|
|
|
|
macos-homebrew:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
|
run: brew install pkg-config gtkmm3 pcre cmake
|
|
|
|
- name: Create Build Directory
|
|
run: cmake -E make_directory ${{runner.workspace}}/build
|
|
|
|
- name: Configure CMake
|
|
shell: bash
|
|
working-directory: ${{runner.workspace}}/build
|
|
run: >
|
|
cmake $GITHUB_WORKSPACE
|
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
-DAPP_BUILD_EXAMPLES=ON
|
|
-DAPP_BUILD_TESTS=ON
|
|
-DAPP_COMPILER_ENABLE_WARNINGS=ON
|
|
|
|
- name: Build
|
|
shell: bash
|
|
working-directory: ${{runner.workspace}}/build
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
|
|
- name: Test
|
|
working-directory: ${{runner.workspace}}/build
|
|
shell: bash
|
|
run: ctest -C $BUILD_TYPE
|
|
|
|
|
|
freebsd:
|
|
runs-on: macos-latest
|
|
# env:
|
|
# variables to pass to VM
|
|
# MYTOKEN : ${{ secrets.MYTOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build and test in FreeBSD
|
|
id: test
|
|
uses: vmactions/freebsd-vm@v0.1.2
|
|
with:
|
|
envs: 'BUILD_TYPE'
|
|
usesh: true
|
|
sync: rsync
|
|
mem: 2048
|
|
prepare: >
|
|
pkg install -y cmake pkgconf gtkmm30 gettext pcre libiconv
|
|
|
|
run: >
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
-DAPP_BUILD_EXAMPLES=ON
|
|
-DAPP_BUILD_TESTS=ON
|
|
-DAPP_COMPILER_ENABLE_WARNINGS=ON
|
|
|
|
cmake --build . --config $BUILD_TYPE
|
|
|
|
ctest -C $BUILD_TYPE
|