Skip to content

Enable building of the application for each chapter. #4

Enable building of the application for each chapter.

Enable building of the application for each chapter. #4

Workflow file for this run

name: 'Build Site'
on:
pull_request:
branches: [ "main" ]
# tags:
# - "v*.*.*"
# workflow_dispatch:
jobs:
build:
runs-on: ${{os.matrix}}

Check failure on line 11 in .github/workflows/build-host.yml

View workflow run for this annotation

GitHub Actions / Build Site

Invalid workflow file

The workflow is not valid. .github/workflows/build-host.yml (Line: 11, Col: 14): Unrecognized named-value: 'os'. Located at position 1 within expression: os.matrix
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
target: [android, windows, linux]
graphics: [vulkan, opengl, opengles, dx11, dx12]
chapter: [Chapter1, Chapter2, Chapter3, Chapter4, Chapter5]
include:
- os: windows-latest
target: windows
graphics: vulkan
- os: windows-latest
target: windows
graphics: opengl
- os: windows-latest
target: windows
graphics: dx11
- os: windows-latest
target: windows
graphics: dx12
- os: ubuntu-latest
target: linux
graphics: vulkan
- os: ubuntu-latest
target: linux
graphics: opengl
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