initial commit-moved from vulkan_guide

This commit is contained in:
2025-10-10 22:53:54 +09:00
commit 8853429937
2484 changed files with 973414 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
name: CI arm
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- '**.cpp'
- '**.hpp'
- '**.txt'
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build_windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [ARM64]
steps:
- uses: actions/checkout@v3
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Configure CMake
run: cmake -A ${{ matrix.arch }} -DCMAKE_CROSSCOMPILING=1 -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --verbose
build_windows_deprecated_extensions:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [ARM64]
steps:
- uses: actions/checkout@v3
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Configure CMake
run: cmake -A ${{ matrix.arch }} -DCMAKE_CROSSCOMPILING=1 -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON -DFASTGLTF_ENABLE_DEPRECATED_EXT=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --verbose

View File

@@ -0,0 +1,173 @@
name: CI x64
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- '**.cpp'
- '**.hpp'
- '**.txt'
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
SAMPLE_MODELS_LOCATION: tests/gltf/glTF-Sample-Models
jobs:
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON
- name: Build (Windows)
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}\build\tests\Release\fastgltf_tests.exe -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]
build_windows_deprecated_extensions:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON -DFASTGLTF_ENABLE_DEPRECATED_EXT=ON
- name: Build (Windows)
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}\build\tests\Release\fastgltf_tests.exe -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]
build_linux:
strategy:
matrix:
c_compiler: [gcc-9, gcc-10, clang-13]
include:
- cxx_compiler: g++-9
c_compiler: gcc-9
- cxx_compiler: g++-10
c_compiler: gcc-10
- cxx_compiler: clang++-13
c_compiler: clang-13
runs-on: ubuntu-latest
env:
CC: ${{ matrix.c_compiler }}
CXX: ${{ matrix.cxx_compiler }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
# GLFW requires these libs to be present so that configuring succeeds.
- name: Install libxandr
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}/build/tests/fastgltf_tests -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]
build_linux_deprecated_extensions:
strategy:
matrix:
c_compiler: [gcc-9, gcc-10, clang-13]
include:
- cxx_compiler: g++-9
c_compiler: gcc-9
- cxx_compiler: g++-10
c_compiler: gcc-10
- cxx_compiler: clang++-13
c_compiler: clang-13
runs-on: ubuntu-latest
env:
CC: ${{ matrix.c_compiler }}
CXX: ${{ matrix.cxx_compiler }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
# GLFW requires these libs to be present so that configuring succeeds.
- name: Install libxandr
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON -DFASTGLTF_ENABLE_DEPRECATED_EXT=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}/build/tests/fastgltf_tests -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]

View File

@@ -0,0 +1,50 @@
name: Deploy documentation
on:
push:
branches:
- main
paths:
- 'docs/*'
- 'include/fastgltf/*.hpp'
pull_request:
paths:
- 'docs/*'
- 'include/fastgltf/*.hpp'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Install CMake dependencies
run: sudo apt-get install doxygen
- name: Install Python dependencies
run: pip3 install -U Sphinx breathe sphinx_rtd_theme
- name: Add ~/.local/bin to PATH
run: PATH=$HOME/.local/bin:$PATH
- name: Configure CMake project
run: cmake -B ${{ github.workspace }}/build -DFASTGLTF_ENABLE_DOCS=ON
- name: Build docs CMake target
run: cmake --build ${{ github.workspace }}/build --target generate_sphinx --verbose
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
if: github.ref == 'refs/heads/main'
with:
path: ${{ github.workspace }}/build/docs/sphinx
- name: Deploy site
uses: actions/deploy-pages@v2
if: github.ref == 'refs/heads/main'