Skip to content

Commit

Permalink
Update build.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoLusardi committed Aug 6, 2024
1 parent ecc34d8 commit 2e2d42c
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,43 +33,43 @@ jobs:
strategy:
matrix:

# Full path to MSVC 2022 build environment setup script:
# https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md#visual-studio-enterprise-2022
windows2022_msvc2022:
AGENT: 'windows-2022'
COMPILER: visual_studio
COMPILER_VERSION: 17
SETUP_BUILD_ENV: 'call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
ACTIVATE_VIRTUAL_ENV: 'call ".venv\Scripts\activate.bat"'
INSTALL_FFMPEG: 'choco install ffmpeg -y'

# Full path to MSVC 2019 build environment setup script:
# https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md#visual-studio-enterprise-2019
windows2019_msvc2019:
AGENT: 'windows-2019'
COMPILER: visual_studio
COMPILER_VERSION: 16
SETUP_BUILD_ENV: 'call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
ACTIVATE_VIRTUAL_ENV: 'call ".venv\Scripts\activate.bat"'
INSTALL_FFMPEG: 'choco install ffmpeg -y'

# # Not available yet
# ubuntu2404_gcc14:
# AGENT: 'ubuntu-24.04'
# COMPILER: gcc
# COMPILER_VERSION: 14
# SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)'
# ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
# INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg'

# # Not available yet
# ubuntu2404_clang18:
# AGENT: 'ubuntu-24.04'
# COMPILER: clang
# COMPILER_VERSION: 18
# SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)'
# ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
# INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg'
# # Full path to MSVC 2022 build environment setup script:
# # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md#visual-studio-enterprise-2022
# windows2022_msvc2022:
# AGENT: 'windows-2022'
# COMPILER: visual_studio
# COMPILER_VERSION: 17
# SETUP_BUILD_ENV: 'call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
# ACTIVATE_VIRTUAL_ENV: 'call ".venv\Scripts\activate.bat"'
# INSTALL_FFMPEG: 'choco install ffmpeg -y'

# # Full path to MSVC 2019 build environment setup script:
# # https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md#visual-studio-enterprise-2019
# windows2019_msvc2019:
# AGENT: 'windows-2019'
# COMPILER: visual_studio
# COMPILER_VERSION: 16
# SETUP_BUILD_ENV: 'call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
# ACTIVATE_VIRTUAL_ENV: 'call ".venv\Scripts\activate.bat"'
# INSTALL_FFMPEG: 'choco install ffmpeg -y'

# # # Not available yet
# # ubuntu2404_gcc14:
# # AGENT: 'ubuntu-24.04'
# # COMPILER: gcc
# # COMPILER_VERSION: 14
# # SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)'
# # ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
# # INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg'

# # # Not available yet
# # ubuntu2404_clang18:
# # AGENT: 'ubuntu-24.04'
# # COMPILER: clang
# # COMPILER_VERSION: 18
# # SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)'
# # ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
# # INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg'

ubuntu2204_gcc12:
AGENT: 'ubuntu-22.04'
Expand All @@ -87,13 +87,13 @@ jobs:
ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg'

macos14_clang15:
AGENT: 'macOS-14'
COMPILER: clang
COMPILER_VERSION: 15
SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)'
ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
INSTALL_FFMPEG: 'brew install ffmpeg'
# macos14_clang15:
# AGENT: 'macOS-14'
# COMPILER: clang
# COMPILER_VERSION: 15
# SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)'
# ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate'
# INSTALL_FFMPEG: 'brew install ffmpeg'

pool:
vmImage: $(AGENT)
Expand All @@ -115,7 +115,7 @@ jobs:

- task: Cache@2
inputs:
key: 'conan $(Agent.JobName) | video_io/conanfile.py | video_io/examples/conanfile.txt | video_io/tests/conanfile.txt'
key: 'invalidate | conan $(Agent.JobName) | video_io/conanfile.py | video_io/examples/conanfile.txt | video_io/tests/conanfile.txt'
path: '$(Build.SourcesDirectory)/.conan'
displayName: 'Cache Conan'

Expand Down

0 comments on commit 2e2d42c

Please sign in to comment.