forked from BabylonJS/JsRuntimeHost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.yml
More file actions
31 lines (24 loc) · 772 Bytes
/
linux.yml
File metadata and controls
31 lines (24 loc) · 772 Bytes
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
parameters:
name: ''
Sanitizers: false
jobs:
- job: ${{parameters.name}}
timeoutInMinutes: 15
pool:
vmImage: ubuntu-latest
variables:
SANITIZER_FLAG: ${{ coalesce(replace(format('{0}', parameters.Sanitizers), 'True', 'ON'), 'OFF') }}
steps:
- script: |
sudo apt-get update
sudo apt-get install libjavascriptcoregtk-4.1-dev libcurl4-openssl-dev ninja-build
displayName: 'Install packages'
- script: cmake -B Build/ubuntu -GNinja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D ENABLE_SANITIZERS=$(SANITIZER_FLAG)
displayName: 'Configure CMake'
- script: |
cd Build/ubuntu
ninja
displayName: 'Build Solution'
- script: ./UnitTests
workingDirectory: 'Build/ubuntu/Tests/UnitTests'
displayName: 'Run Tests'