mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
Set up CI with Azure Pipelines
This commit is contained in:
69
azure-pipelines.yml
Normal file
69
azure-pipelines.yml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
jobs:
|
||||||
|
- job: ubuntu1604
|
||||||
|
pool:
|
||||||
|
vmImage: 'Ubuntu-16.04'
|
||||||
|
displayName: 'Ubuntu 16.04 x86-64'
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get install -y libgl-dev libglew-dev libglfw3-dev python2.7-dev libpng16-dev libglm-dev libopenal-dev libluajit-5.1-dev libserialport-dev libsndfile1-dev
|
||||||
|
sudo apt-get install -y gcc-8 g++-8
|
||||||
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
|
||||||
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
|
||||||
|
displayName: 'Install dependencies'
|
||||||
|
- script: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build .
|
||||||
|
displayName: 'Build'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: 'build/bin'
|
||||||
|
artifactName: binaries
|
||||||
|
displayName: 'Publish binaries'
|
||||||
|
|
||||||
|
- job: windows_x64
|
||||||
|
pool:
|
||||||
|
vmImage: 'vs2017-win2016'
|
||||||
|
displayName: 'Windows VS2017 x86-64'
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -A x64
|
||||||
|
cmake --build . --config RelWithDebInfo
|
||||||
|
displayName: 'Build'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: 'build/bin'
|
||||||
|
artifactName: binaries
|
||||||
|
displayName: 'Publish binaries'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: 'build/pdb'
|
||||||
|
artifactName: symbols
|
||||||
|
displayName: 'Publish symbols'
|
||||||
|
|
||||||
|
- job: windows_x32
|
||||||
|
pool:
|
||||||
|
vmImage: 'vs2017-win2016'
|
||||||
|
displayName: 'Windows VS2017 x86'
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -A Win32 -T v141_xp
|
||||||
|
cmake --build . --config RelWithDebInfo
|
||||||
|
displayName: 'Build'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: 'build/bin'
|
||||||
|
artifactName: binaries
|
||||||
|
displayName: 'Publish binaries'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: 'build/pdb'
|
||||||
|
artifactName: symbols
|
||||||
|
displayName: 'Publish symbols'
|
||||||
6
stdafx.h
6
stdafx.h
@@ -87,6 +87,12 @@
|
|||||||
#define GLFW_INCLUDE_GLU
|
#define GLFW_INCLUDE_GLU
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
|
#ifndef GLFW_TRUE
|
||||||
|
#define GLFW_FALSE 0
|
||||||
|
#define GLFW_TRUE 1
|
||||||
|
#define glfwGetKeyName(a, b) ("")
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GLM_ENABLE_EXPERIMENTAL
|
#define GLM_ENABLE_EXPERIMENTAL
|
||||||
#define GLM_FORCE_CTOR_INIT
|
#define GLM_FORCE_CTOR_INIT
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|||||||
2
uart.cpp
2
uart.cpp
@@ -14,7 +14,7 @@ uart_input::uart_input()
|
|||||||
if (sp_get_port_by_name(conf.port.c_str(), &port) != SP_OK)
|
if (sp_get_port_by_name(conf.port.c_str(), &port) != SP_OK)
|
||||||
throw std::runtime_error("uart: cannot find specified port");
|
throw std::runtime_error("uart: cannot find specified port");
|
||||||
|
|
||||||
if (sp_open(port, SP_MODE_READ_WRITE) != SP_OK)
|
if (sp_open(port, (sp_mode)(SP_MODE_READ | SP_MODE_WRITE)) != SP_OK)
|
||||||
throw std::runtime_error("uart: cannot open port");
|
throw std::runtime_error("uart: cannot open port");
|
||||||
|
|
||||||
sp_port_config *config;
|
sp_port_config *config;
|
||||||
|
|||||||
Reference in New Issue
Block a user