+ github actions workflow (1st attempt)

This commit is contained in:
Roland Conybeare 2025-05-10 16:43:01 -05:00
commit 88a8cd0f0a

33
.github/main-stock-ubuntu.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: build on ubuntu base platform
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
# Customize CMake build type here
BUILD_TYPE: Release
jobs:
build:
# This build won't be entirely reproducible, given ubuntu changes on github runners may
# introduce regressions.
#
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v3
- name: bootstrap xo-cmake
run: |
PREFIX=${{github.workspace}//local
mkdir -p ${PREFIX}
echo "::group::xo-cmake configure"
cmake -B .build0 -S xo-cmake -DCMAKE_INSTALL_PREFIX=${PREFIX}
echo "::group::xo-cmake build"
cmake --build .build0
echo "::group::xo-cmake install"
cmake --install .build0