Skip to content

Implementing the check item requested behaviour. #11

Implementing the check item requested behaviour.

Implementing the check item requested behaviour. #11

Workflow file for this run

name: CMake
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
XCL_VERSION: 1.5.2
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: "Windows: Configure environment"
if: runner.os == 'Windows'
shell: bash
run: |
choco install winflexbison3
# Select MinGW toolchain instead of the default MSVC.
echo "CMAKE_GENERATOR=MinGW Makefiles" >> $GITHUB_ENV
- name: "Linux: Install dependency libraries"
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake git freeglut3-dev libudev-dev libopenal-dev libspeechd-dev speech-dispatcher
- name: "MacOS: Install dependency libraries"
if: runner.os == 'macOS'
run: |
brew install bison
echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH
export LDFLAGS="-L/usr/local/opt/bison/lib"
brew install flex
echo "/usr/local/opt/flex/bin" >> $GITHUB_PATH
export LDFLAGS="-L/usr/local/opt/flex/lib"
export CPPFLAGS="-I/usr/local/opt/flex/include"
- name: Configure CMake
working-directory: ${{github.workspace}}/src
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: ${{github.workspace}}/src
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
- uses: actions/upload-artifact@v3
with:
name: binaries
path: ${{github.workspace}}/build/*.xpl
if-no-files-found: error
package:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: binaries
path: Xchecklist/64
- uses: actions/upload-artifact@v3
with:
name: Xchecklist_v${{env.XCL_VERSION}}
path: |
${{github.workspace}}/Xchecklist*
if-no-files-found: error