6.3 Releasing with GitHub Releases and artifacts
git clone https://github.com/dev-cafe/cmake-cookbook.git cd cmake-cookbook ls chapter-01/recipe-01/ cmake cookbook pdf github work
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 Release] compiler: [gcc
You can still learn from the repository even without purchasing the book. Each example contains: cmake cookbook pdf github work