Skip to content

Build

Build #147

Workflow file for this run

name: Build
on:
schedule:
# Run each Sun
- cron: '0 0 * * 0'
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
win-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Environment
id: install-boost
uses: MarkusJx/[email protected]
with:
boost_version: 1.85.0
platform_version: 2022
toolset: msvc
- name: Build
env:
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}}
run: |
cmake -B build
cmake --build build --config ${{env.BUILD_TYPE}}
- name: Test
run: |
cd build/test
ctest
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: win-numero
path: build/${{env.BUILD_TYPE}}/numero.exe
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Environment
id: install-boost
uses: MarkusJx/[email protected]
with:
boost_version: 1.85.0
platform_version: 20.04
- name: Build
env:
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}}
run: |
cmake -B build
cmake --build build --config ${{env.BUILD_TYPE}}
- name: Test
run: |
cd build/test
ctest
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-numero
path: build/numero
mac-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Environment
id: install-boost
uses: MarkusJx/[email protected]
with:
boost_version: 1.85.0
platform_version: 14
arch: aarch64
- name: Build
env:
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}}
run: |
cmake -B build
cmake --build build --config ${{env.BUILD_TYPE}}
- name: Test
run: |
cd build/test
ctest
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: mac-numero
path: build/numero