-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Github actions to handle PR pipelines (#147)
Replaced old azure pipeline CI with Github actions.
- Loading branch information
1 parent
d01d109
commit 187f76f
Showing
7 changed files
with
180 additions
and
265 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Master - CI | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
schedule: | ||
- cron: 0 23 * * 1-5 | ||
|
||
jobs: | ||
# Windows | ||
build-windows: | ||
uses: ./.github/workflows/windows.yml | ||
with: | ||
cmake-version: '3.26.3' | ||
platforms: "['x64', 'Win32', 'ARM', 'ARM64']" | ||
configurations: "['Release', 'Debug']" | ||
# MacOS | ||
build-macos: | ||
uses: ./.github/workflows/macos.yml | ||
with: | ||
cmake-version: '3.26.3' | ||
platforms: "['macOS']" | ||
configurations: "['Release', 'Debug']" | ||
# iOS | ||
build-ios: | ||
uses: ./.github/workflows/ios.yml | ||
with: | ||
cmake-version: '3.26.3' | ||
platforms: "['iOS']" | ||
configurations: "['Release', 'Debug']" |
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,36 @@ | ||
name: 'build ios' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
cmake-version: | ||
required: true | ||
type: string | ||
platforms: | ||
required: true | ||
type: string | ||
configurations: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
platform: ${{ fromJson(inputs.platforms) }} | ||
config: ${{ fromJson(inputs.configurations) }} | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Setup CMake | ||
uses: jwlawson/actions-setup-cmake@v2.0.2 | ||
with: | ||
cmake-version: ${{ inputs.cmake-version }} | ||
- name: CMake Configure | ||
run: cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/Build/CMake/ios.toolchain.cmake" -DPLATFORM=OS -DDEPLOYMENT_TARGET="10.11" -DENABLE_UNIT_TESTS="OFF" -B ./built/Int/cmake_${{ matrix.platform }} . | ||
- name: CMake Build | ||
run: cmake --build . --target install --config ${{ matrix.config }} | ||
working-directory: ./built/Int/cmake_${{ matrix.platform }} |
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,44 @@ | ||
name: 'build macos' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
cmake-version: | ||
required: true | ||
type: string | ||
platforms: | ||
required: true | ||
type: string | ||
configurations: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
platform: ${{ fromJson(inputs.platforms) }} | ||
config: ${{ fromJson(inputs.configurations) }} | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Setup CMake | ||
uses: jwlawson/actions-setup-cmake@v2.0.2 | ||
with: | ||
cmake-version: ${{ inputs.cmake-version }} | ||
- name: CMake Configure | ||
run: cmake -G Xcode -B ./built/Int/cmake_${{ matrix.platform }} . | ||
- name: CMake Build | ||
run: cmake --build . --target install --config ${{ matrix.config }} | ||
working-directory: ./built/Int/cmake_${{ matrix.platform }} | ||
- name: Running Unit Tests | ||
run: ./GLTFSDK.Test --gtest_output=xml:GLTFSDK.Test.log | ||
working-directory: ./built/Out/${{ matrix.platform }}/${{ matrix.config }}/GLTFSDK.Test | ||
- uses: actions/upload-artifact@v4 | ||
name: "Upload test results" | ||
with: | ||
name: GLTFSDK.Test.MacOS.${{ matrix.platform }}.${{ matrix.config }} | ||
path: ${{ github.workspace }}/built/Out/${{ matrix.platform }}/${{ matrix.config }}/GLTFSDK.Test/GLTFSDK.Test.log |
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,46 @@ | ||
name: 'build windows' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
cmake-version: | ||
required: true | ||
type: string | ||
platforms: | ||
required: true | ||
type: string | ||
configurations: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
platform: ${{ fromJson(inputs.platforms) }} | ||
config: ${{ fromJson(inputs.configurations) }} | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Setup CMake | ||
uses: jwlawson/actions-setup-cmake@v2.0.2 | ||
with: | ||
cmake-version: ${{ inputs.cmake-version }} | ||
- name: CMake Configure | ||
run: cmake -G "Visual Studio 16 2019" -A ${{ matrix.platform }} -B ./built/Int/cmake_${{ matrix.platform }} . | ||
- name: CMake Build | ||
run: cmake --build . --target install --config ${{ matrix.config }} | ||
working-directory: ./built/Int/cmake_${{ matrix.platform }} | ||
- name: Running Unit Tests | ||
if: ${{ (matrix.platform == 'x64') || (matrix.platform == 'Win32') }} | ||
run: .\GLTFSDK.Test.exe --gtest_output=xml:GLTFSDK.Test.log | ||
working-directory: ./built/Out/windows_${{ matrix.platform }}\${{ matrix.config }}\GLTFSDK.Test | ||
- uses: actions/upload-artifact@v4 | ||
name: "Upload test results" | ||
if: ${{ (matrix.platform == 'x64') || (matrix.platform == 'Win32') }} | ||
with: | ||
name: GLTFSDK.Test.Windows.${{ matrix.platform }}.${{ matrix.config }} | ||
path: ${{ github.workspace }}\built\Out\windows_${{ matrix.platform }}\${{ matrix.config }}\GLTFSDK.Test\GLTFSDK.Test.log |
Oops, something went wrong.