Skip to content

Build

Build #28

Workflow file for this run

name: Build
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
name: 'build on Haiku'
runs-on: 'ubuntu-latest'
container: 'docker.io/hectorm/qemu-haiku:latest'
steps:
- name: 'Wait until the VM is ready'
run: 'container-init & timeout 600 vmshell exit 0'
- name: 'Install packages'
run: 'vmshell pkgman install -y gcc haiku_devel make makefile_engine libgit2_devel lexilla_devel yaml_cpp*_devel editorconfig_core_c_devel cmake'
- name: 'Checkout project'
uses: actions/checkout@v4
- name: 'Copy project to VM'
run: 'vmshell mkdir ./src/; tar -cf - ./ | vmshell tar -xvf - -C ./src/'
- name: 'Prepare Build project'
run: 'vmshell cmake -DCMAKE_BUILD_TYPE=Release -DHAIKU_ENABLE_I18N=ON -S ./src -B build'
- name: 'Build project'
run: 'vmshell cmake --build ./build --target Stocks -- -j 2'