forked from buu342/N64-UNFLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
89 lines (78 loc) · 2.64 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
trigger:
branches:
include: ["master", "develop*", "release*", "refs/tags/*" ]
paths:
exclude: [ "doc", "*.md", ".gitignore" ]
jobs:
- job: UNFLoader_Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
echo Add Linux dependencies
sudo apt-get install libncurses5-dev libncursesw5-dev libftdi1-dev libusb-1.0-0-dev libudev-dev
cd $BUILD_SOURCESDIRECTORY
echo Build App
cd ./UNFLoader/
ls
make -f Makefile
#copy to artifacts directory
mkdir artifact
mv UNFLoader artifact
mv installer_linux.sh artifact
displayName: 'Build Program'
continueOnError: false
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
displayName: Publish Build Artifacts
inputs:
pathtoPublish: '$(Build.SourcesDirectory)/UNFLoader/artifact/'
artifactName: 'unfloader-linux'
publishLocation: 'Container' # Options: container, filePath
parallel: true # Optional
- job: UNFLoader_Windows
pool:
vmImage: 'windows-2019'
steps:
# Visual Studio build
# Build with MSBuild and set the Visual Studio version property
- task: VSBuild@1
inputs:
solution: '**\*.sln'
configuration: 'Release'
vsVersion: '16.0' # Optional. Options: latest, 16.0, 15.0, 14.0, 12.0, 11.0
msbuildArchitecture: 'x86' # Optional. Options: x86, x64
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
displayName: Publish Build Artifacts
inputs:
pathtoPublish: '$(Build.SourcesDirectory)/UNFLoader/Release/UNFLoader.exe'
#pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'unfloader-windows'
publishLocation: 'Container' # Options: container, filePath
#targetPath: # Required when publishLocation == FilePath
parallel: true # Optional
#parallelCount: # Optional
- job: UFNLoader_macOS
pool:
vmImage: 'macOS-latest'
steps:
- script: |
export HOMEBREW_CELLAR=$(brew --cellar)
export HOMEBREW_PREFIX=$(brew --prefix)
echo Installing Prerequisites
brew install libftdi
echo Build macOS App
cd ./UNFLoader/
make
cd ..
displayName: 'Build Program'
continueOnError: false
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
displayName: Publish Build Artifacts
inputs:
pathtoPublish: '$(Build.SourcesDirectory)/UNFLoader/UNFLoader'
artifactName: 'unfloader-macOS'
publishLocation: 'Container' # Options: container, filePath
parallel: true # Optional