-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[azure-pipelines] build matrix (#111)
* [auzre-pipelines] linux build matrix * [azure-pipelines] matrix pipeline * add tests and consideration toward 0.3 corrected typo in README.md Update README.md
- Loading branch information
Showing
6 changed files
with
275 additions
and
10 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
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,94 @@ | ||
### Trigger only on tags or on github pre-release and make the other depending on this one? | ||
### this is succeful by default if not running.. | ||
|
||
# trigger: | ||
# branches: | ||
# include: | ||
# - master | ||
# paths: | ||
# exclude: | ||
# #- .gitignore | ||
# - .github/* | ||
# - README.md | ||
# - appveyor.yml | ||
# tags: | ||
# include: | ||
# - '*' | ||
|
||
# pr: | ||
# branches: | ||
# include: | ||
# - master | ||
# paths: | ||
# exclude: | ||
# #- .gitignore | ||
# - .github/* | ||
# - README.md | ||
# - appveyor.yml | ||
# - LICENSE | ||
|
||
trigger: none | ||
pr: none | ||
|
||
variables: | ||
- template: variables/global.yml | ||
- template: variables/images.yml | ||
- template: variables/build_switches.yml | ||
|
||
stages: | ||
- stage: Dep | ||
jobs: | ||
- job: vcpkg | ||
strategy: | ||
matrix: | ||
linux: | ||
vmImageName: ${{ variables.linux_image }} | ||
triplet: x64-linux | ||
windows: | ||
vmImageName: ${{ variables.windows_image }} | ||
triplet: x64-windows | ||
macos: | ||
vmImageName: ${{ variables.mac_image }} | ||
triplet: x64-osx | ||
pool: | ||
vmImage: $(vmImageName) | ||
steps: | ||
- template: templates/dep-vcpkg-steps.yml | ||
parameters: | ||
vcpkg_key_cache: $(CACHE_VCPKG_KEY) | ||
triplet: $(triplet) | ||
|
||
### split in stages for each OS depending on stage dep | ||
- stage: matrix_linux | ||
displayName: Matrix Linux | ||
dependsOn: Dep | ||
jobs: | ||
- template: 'templates/matrix-job.yml' | ||
parameters: | ||
jobName: "linux" | ||
vmImageName: ${{ variables.linux_image }} | ||
triplet: x64-linux | ||
sdl2_static: ['ON'] | ||
enable_code_coverage: ['OFF'] | ||
- stage: matrix_windows | ||
displayName: Matrix Windows | ||
dependsOn: Dep | ||
jobs: | ||
- template: 'templates/matrix-job.yml' | ||
parameters: | ||
jobName: "windows" | ||
vmImageName: ${{ variables.windows_image }} | ||
triplet: x64-windows | ||
arch: 64 | ||
enable_code_coverage: ['OFF'] | ||
cmake_ignore_path: $(CMAKE_IGNORE_PATH_WIN) | ||
- stage: matrix_macos | ||
displayName: Matrix MacOS | ||
dependsOn: Dep | ||
jobs: | ||
- template: 'templates/matrix-job.yml' | ||
parameters: | ||
jobName: "macos" | ||
vmImageName: ${{ variables.mac_image }} | ||
triplet: x64-osx | ||
sdl2_static: ['ON'] |
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,47 @@ | ||
parameters: | ||
configuration: ['Debug', 'Release'] | ||
sdl2_static: ['ON', 'OFF'] | ||
build_testing: ['ON', 'OFF'] | ||
build_shared_libs: ['ON', 'OFF'] | ||
build_examples: ['ON', 'OFF'] | ||
build_snapshot: ['ON', 'OFF'] | ||
enable_code_coverage: ['ON', 'OFF'] | ||
vmImageName: '' | ||
triplet: '' | ||
jobName: 'build_matrix' | ||
arch: '' | ||
cmake_ignore_path: '' | ||
|
||
jobs: | ||
- job: ${{ parameters.jobName }} | ||
#displayName: ${{ parameters.jobDisplayName }} | ||
strategy: | ||
matrix: | ||
${{ each configuration in parameters.configuration }}: | ||
${{ each sdl2_static in parameters.sdl2_static}}: | ||
${{ each build_testing in parameters.build_testing }}: | ||
${{ each build_shared_libs in parameters.build_shared_libs }}: | ||
${{ each build_examples in parameters.build_examples }}: | ||
${{ each build_snapshot in parameters.build_snapshot}}: | ||
${{ each enable_code_coverage in parameters.enable_code_coverage}}: | ||
${{ format('{0}-{1}-{2}-{3}-{4}-{5}-{6}', configuration, sdl2_static, build_testing, build_shared_libs, build_examples, build_snapshot, enable_code_coverage) }}: | ||
CONFIGURATION: ${{ configuration }} | ||
SDL2_STATIC: ${{ sdl2_static }} | ||
BUILD_TESTING: ${{ build_testing }} | ||
BUILD_SHARED_LIBS: ${{ build_shared_libs }} | ||
BUILD_EXAMPLES: ${{ build_examples }} | ||
BUILD_SNAPSHOT: ${{ build_snapshot }} | ||
ENABLE_CODE_COVERAGE: ${{ enable_code_coverage }} | ||
pool: | ||
vmImage: ${{ parameters.vmImageName }} | ||
steps: | ||
- template: 'ci-steps.yml' | ||
parameters: | ||
vcpkg_key_cache: $(CACHE_VCPKG_KEY) | ||
triplet: ${{ parameters.triplet }} | ||
build_type: $(CONFIGURATION) | ||
arch: ${{ parameters.arch }} | ||
cmake_ignore_path: ${{ parameters.cmake_ignore_path }} | ||
test: false | ||
install: false | ||
package: false |
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