diff --git a/.github/workflows/ci_arm.yml b/.github/workflows/ci_arm.yml new file mode 100644 index 000000000..72a7b2a1f --- /dev/null +++ b/.github/workflows/ci_arm.yml @@ -0,0 +1,37 @@ +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: + include: + - {arch: ARM} + - {arch: ARM64} + + steps: + - uses: actions/checkout@v3 + + - 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 }} + + - name: Build + run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --verbose diff --git a/.github/workflows/ci_x64.yml b/.github/workflows/ci_x64.yml index 02a4bf271..4e60cf0e5 100644 --- a/.github/workflows/ci_x64.yml +++ b/.github/workflows/ci_x64.yml @@ -38,7 +38,7 @@ jobs: run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} - name: Build (Windows) - run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/tests + run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/tests --verbose - name: Run tests run: ${{ github.workspace }}\build\tests\Release\tests.exe -d yes --order lex [base64],[gltf-loader] @@ -57,7 +57,7 @@ jobs: runs-on: ubuntu-latest env: - C: ${{ matrix.c_compiler }} + CC: ${{ matrix.c_compiler }} CXX: ${{ matrix.cxx_compiler }} steps: - uses: actions/checkout@v3 @@ -80,7 +80,7 @@ jobs: 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 }} + run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} --verbose - name: Build run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b80e7c95..ad15a21d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER_EQUAL "3.24" cmake_policy(SET CMP0135 NEW) endif() -project(fastgltf VERSION 0.1.0 LANGUAGES C CXX) +project(fastgltf VERSION 0.2.0 LANGUAGES C CXX) option(FASTGLTF_DOWNLOAD_SIMDJSON "Downloads a copy of simdjson itself to satisfy the dependency" ON)