Clarify README introduction #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Smoke | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| smoke: | |
| name: ${{ matrix.os }} / ${{ matrix.link_mode }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| link_mode: | |
| - symlink | |
| - hardlink | |
| - copy | |
| include: | |
| - os: ubuntu-latest | |
| native_build_arg: -j1 | |
| - os: windows-latest | |
| native_build_arg: /m:1 | |
| env: | |
| NAM_CACHE_ROOT: ${{ github.workspace }}/.nam-cache | |
| SMOKE_BUILD_DIR: ${{ github.workspace }}/smoke/build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Checkout first-party manifests | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: Devsh-Graphics-Programming/Nabla-Asset-Manifests | |
| path: official-manifests | |
| - name: Restore NAM cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ env.NAM_CACHE_ROOT }} | |
| key: nam-cache-${{ runner.os }}-${{ hashFiles('official-manifests/**/*.dvc') }} | |
| restore-keys: | | |
| nam-cache-${{ runner.os }}- | |
| - name: Configure smoke | |
| shell: pwsh | |
| run: | | |
| cmake -E rm -rf $env:SMOKE_BUILD_DIR | |
| cmake -E make_directory $env:NAM_CACHE_ROOT | |
| $cmakeArgs = @( | |
| '-S', 'smoke', | |
| '-B', $env:SMOKE_BUILD_DIR, | |
| "-DNAM_SMOKE_CACHE_ROOT=$env:NAM_CACHE_ROOT", | |
| "-DNAM_SMOKE_MANIFEST_ROOT=$env:GITHUB_WORKSPACE/official-manifests", | |
| "-DNAM_SMOKE_LINK_MODE=${{ matrix.link_mode }}" | |
| ) | |
| & cmake @cmakeArgs | |
| - name: Build smoke | |
| shell: pwsh | |
| run: cmake --build $env:SMOKE_BUILD_DIR --config Debug --target media -- ${{ matrix.native_build_arg }} | |
| - name: Verify materialization stats | |
| shell: pwsh | |
| run: | | |
| python smoke/ci/verify_materialization.py ` | |
| --build-dir $env:SMOKE_BUILD_DIR ` | |
| --cache-root $env:NAM_CACHE_ROOT ` | |
| --expected-mode ${{ matrix.link_mode }} ` | |
| --forbid-tree .nam/media/assets |