Don't just download the ZIP. Clone it so you can track changes: git clone https://github.com cd CMake-Cookbook Use code with caution. Step 2: Use a Modern Generator
Example GitHub Actions job snippet
jobs: build: runs-on: ubuntu-latest strategy: matrix: build-type: [Debug, Release] compiler: [gcc, clang] steps: - uses: actions/checkout@v4 - uses: lukka/get-cmake@v4 - name: Configure run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$ matrix.build-type - name: Build run: cmake --build build --config $ matrix.build-type -- -j - name: Test run: ctest --test-dir build --output-on-failure docs: runs-on: ubuntu-latest needs: build steps: - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install docs deps run: pip install -r docs/requirements.txt - name: Build docs PDF run: | sphinx-build -b latex docs/ build/docs/latex make -C build/docs/latex all-pdf - name: Upload PDF uses: actions/upload-artifact@v4 with: name: docs-pdf path: build/docs/latex/refman.pdf cmake cookbook pdf github work
Sarah stretched and yawned. "See? The GitHub repo gives you the ingredients and the steps. The PDF teaches you how to cook. Together, they make the meal." Don't just download the ZIP