Skip to content

Enable building of the application for each chapter. #1

Enable building of the application for each chapter.

Enable building of the application for each chapter. #1

name: 'Build Site'
on:
pull_request:
branches: [ "main" ]
# tags:
# - "v*.*.*"
# workflow_dispatch:
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
target: [linux]
graphics: [vulkan, opengl]
chapter: [Chapter1, Chapter2, Chapter3, Chapter4, Chapter5]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build $${matrix.chapter}} $${matrix.gfx}} on $${matrix.os}}
run: |
echo "Building $${matrix.os}} $${matrix.chapter}} ${{github.ref_name}}"
cd $${matrix.chapter}}
export GFX=${{matrix.graphics}}
mkdir build
cd build
cmake ..
cmake build