Skip to content

Commit

Permalink
Add: VS Arm64 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Dec 28, 2022
1 parent cdeee79 commit 21e8f58
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci_arm.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions .github/workflows/ci_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 21e8f58

Please sign in to comment.