forked from guillaumeblanc/ozz-animation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request guillaumeblanc#127 from guillaumeblanc/feature/wor…
…kflow Splits workflow per platform
- Loading branch information
Showing
4 changed files
with
107 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: macOS | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
build_type: [Debug] | ||
option: [default, ref, shared, no_fbx] | ||
include: | ||
- build_type: Release | ||
option: default | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install fbx sdk | ||
if: matrix.option != 'no_fbx' | ||
run: | | ||
mkdir fbx | ||
cd fbx | ||
sudo wget 'https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-2/fbx20202_fbxsdk_clang_mac.pkg.tgz' -O 'fbx.tgz' | ||
sudo tar -xf 'fbx.tgz' | ||
sudo installer -pkg *_fbxsdk_clang_macos.pkg -target / | ||
cd .. | ||
- name: Configure | ||
# Configure CMake in a 'build' subdirectory. | ||
run: | | ||
cmake --version | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.option == 'shared'}} -Dozz_build_tests=${{matrix.option != 'no_tests'}} -Dozz_build_simd_ref=${{matrix.option == 'ref'}} -Dozz_build_samples=${{matrix.option != 'no_sample'}} -Dozz_build_data=${{matrix.option != 'no_data'}} -Dozz_build_gltf=${{matrix.option != 'no_gltf'}} | ||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --use-stderr -- -j4 | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
run: ctest -C ${{matrix.build_type}} --output-on-failure -- -j2 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Windows | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
build_type: [Debug] | ||
option: [default, ref, shared, no_fbx] | ||
include: | ||
- build_type: Release | ||
option: default | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install fbx sdk | ||
if: matrix.option != 'no_fbx' | ||
run: | | ||
md fbx | ||
cd fbx | ||
Start-BitsTransfer -Source 'https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-2/fbx20202_fbxsdk_vs2019_win.exe' -Destination 'fbxsdk.exe' | ||
Start-Process -FilePath 'fbxsdk.exe' /S -Wait | ||
cd .. | ||
- name: Configure | ||
# Configure CMake in a 'build' subdirectory. | ||
run: | | ||
cmake --version | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.option == 'shared'}} -Dozz_build_tests=${{matrix.option != 'no_tests'}} -Dozz_build_simd_ref=${{matrix.option == 'ref'}} -Dozz_build_samples=${{matrix.option != 'no_sample'}} -Dozz_build_data=${{matrix.option != 'no_data'}} -Dozz_build_gltf=${{matrix.option != 'no_gltf'}} | ||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --use-stderr | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
run: ctest -C ${{matrix.build_type}} --output-on-failure |
This file contains 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