Skip to content

Commit 21e8f58

Browse files
committed
Add: VS Arm64 CI
1 parent cdeee79 commit 21e8f58

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

.github/workflows/ci_arm.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI arm
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
paths:
7+
- '.github/workflows/**'
8+
- '**.cpp'
9+
- '**.hpp'
10+
- '**.txt'
11+
pull_request:
12+
branches: [ "main" ]
13+
14+
env:
15+
BUILD_TYPE: Release
16+
17+
jobs:
18+
build_windows:
19+
runs-on: windows-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- {arch: ARM}
25+
- {arch: ARM64}
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- name: Download dependencies
31+
run: python3 fetch_test_deps.py
32+
33+
- name: Configure CMake
34+
run: cmake -A ${{ matrix.arch }} -DCMAKE_CROSSCOMPILING=1 -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
35+
36+
- name: Build
37+
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --verbose

.github/workflows/ci_x64.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
3939

4040
- name: Build (Windows)
41-
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/tests
41+
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/tests --verbose
4242

4343
- name: Run tests
4444
run: ${{ github.workspace }}\build\tests\Release\tests.exe -d yes --order lex [base64],[gltf-loader]
@@ -57,7 +57,7 @@ jobs:
5757

5858
runs-on: ubuntu-latest
5959
env:
60-
C: ${{ matrix.c_compiler }}
60+
CC: ${{ matrix.c_compiler }}
6161
CXX: ${{ matrix.cxx_compiler }}
6262
steps:
6363
- uses: actions/checkout@v3
@@ -80,7 +80,7 @@ jobs:
8080
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev
8181

8282
- name: Configure CMake
83-
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
83+
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} --verbose
8484

8585
- name: Build
8686
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER_EQUAL "3.24"
44
cmake_policy(SET CMP0135 NEW)
55
endif()
66

7-
project(fastgltf VERSION 0.1.0 LANGUAGES C CXX)
7+
project(fastgltf VERSION 0.2.0 LANGUAGES C CXX)
88

99
option(FASTGLTF_DOWNLOAD_SIMDJSON "Downloads a copy of simdjson itself to satisfy the dependency" ON)
1010

0 commit comments

Comments
 (0)