forked from grblHAL/Simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
46 lines (43 loc) · 1.54 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
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
# by @hansmbakker, modified by @terjeio
pool:
vmImage: 'Ubuntu-16.04'
steps:
- script: |
git clone --recurse-submodules https://github.com/grblHAL/Simulator.git
mkdir -p "$(Build.ArtifactStagingDirectory)/linux"
mkdir -p "$(Build.ArtifactStagingDirectory)/windows"
displayName: 'Get sources and create output directories'
- script: |
make new --environment-overrides
displayName: 'make for Linux'
env:
{
"SIM_EXE_NAME": "$(Build.ArtifactStagingDirectory)/linux/grbl_sim",
"VALIDATOR_NAME": "$(Build.ArtifactStagingDirectory)/linux/gvalidate"
}
workingDirectory: 'grbl/grbl/grbl-sim'
- script: |
sudo apt-get update
sudo apt-get install mingw-w64
displayName: 'Install cross compiler for Windows'
- script: |
make new --environment-overrides
displayName: 'make for Windows'
env:
{
"PLATFORM":"WINDOWS",
"CC":"/etc/alternatives/i686-w64-mingw32-gcc",
"WINDOWS_LIBRARIES":"-I /usr/i686-w64-mingw32/include",
"SIM_EXE_NAME": "$(Build.ArtifactStagingDirectory)/windows/grbl_sim.exe",
"VALIDATOR_NAME": "$(Build.ArtifactStagingDirectory)/windows/gvalidate.exe"
}
workingDirectory: 'grbl/grbl/grbl-sim'
- task: PublishBuildArtifacts@1
displayName: 'Publish binary files'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: drop