36 lines
723 B
YAML
36 lines
723 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main, develop ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Cache and install APT packages
|
|
run: sudo apt update && sudo apt install -y cmake build-essential
|
|
|
|
- name: Configure project
|
|
run: make configure
|
|
|
|
- name: Build project
|
|
run: make build
|
|
|
|
- name: Run tests
|
|
run: make test
|
|
|
|
- name: Test Installation
|
|
run: make install INSTALL_PREFIX=${{ runner.temp }}/install
|
|
|
|
- name: Verify installation
|
|
run: |
|
|
ls -la ${{ runner.temp }}/install/include/
|