You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.4 KiB

# Template for setting up an MSYS2 environment and building Xournal++ on Windows
parameters:
build_type: ''
cmake_flags: ''
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'ce85de88-4b71-44a0-8a57-2707c0b9a6e7'
definition: '8'
buildVersionToDownload: 'latest'
targetPath: 'C:\'
artifact: 'msys'
- task: ExtractFiles@1
inputs:
archiveFilePatterns: 'C:\msys.7z'
destinationFolder: 'C:\'
cleanDestinationFolder: false
- script: |
set PATH=%PATH%;C:\msys64\usr\bin;C:\msys64\mingw64\bin"
C:\msys64\usr\bin\bash -lc "mkdir build"
env:
MSYS2_ARCH: x86_64
MSYSTEM: MINGW64
CHERE_INVOKING: yes
displayName: 'Create build directory'
- script: |
set PATH=%PATH%;C:\msys64\usr\bin;C:\msys64\mingw64\bin"
C:\msys64\usr\bin\bash -lc "cmake -GNinja .. -DCMAKE_BUILD_TYPE=${{ parameters.build_type}} ${{ parameters.cmake_flags }}"
rem Make sure pot is up to date with sources (maybe translation pipeline is currently running)
C:\msys64\usr\bin\bash -lc "cmake --build . --target pot"
C:\msys64\usr\bin\bash -lc "cmake --build . --target translations"
rem Build Xournal++
C:\msys64\usr\bin\bash -lc "cmake --build ."
workingDirectory: ./build
env:
MSYS2_ARCH: x86_64
MSYSTEM: MINGW64
CHERE_INVOKING: yes
displayName: 'Build Xournal++'