mirror of
https://github.com/RGBCube/serenity
synced 2025-06-18 13:22:09 +00:00
CI: Build Lagom with fuzzing on Azure
This commit is contained in:
parent
9fd2f97d27
commit
e3d4778a63
2 changed files with 62 additions and 34 deletions
|
@ -1,20 +1,27 @@
|
||||||
parameters:
|
parameters:
|
||||||
os: 'Linux'
|
os: 'Linux'
|
||||||
allow_test_failures: false
|
fuzzer: 'NoFuzz'
|
||||||
|
allow_test_failures: 'NoFuzz'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'Lagom_${{ parameters.os }}'
|
- job: 'Lagom_${{ parameters.os }}_${{ parameters.fuzzer }}'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- name: CCACHE_DIR
|
- name: CCACHE_DIR
|
||||||
value: $(Build.SourcesDirectory)/.ccache
|
value: $(Build.SourcesDirectory)/.ccache
|
||||||
- ${{ if eq(parameters.os, 'Linux') }}:
|
|
||||||
- name: job_pool
|
- name: job_pool
|
||||||
|
${{ if eq(parameters.os, 'Linux') }}:
|
||||||
value: ubuntu-20.04
|
value: ubuntu-20.04
|
||||||
- ${{ if eq(parameters.os, 'macOS') }}:
|
${{ if eq(parameters.os, 'macOS') }}:
|
||||||
- name: job_pool
|
|
||||||
value: macos-10.15
|
value: macos-10.15
|
||||||
|
|
||||||
|
- name: toolchain
|
||||||
|
${{ if eq(parameters.fuzzer, 'Fuzz') }}:
|
||||||
|
value: clang
|
||||||
|
${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
|
||||||
|
value: gcc
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(job_pool)
|
vmImage: $(job_pool)
|
||||||
|
|
||||||
|
@ -27,13 +34,28 @@ jobs:
|
||||||
parameters:
|
parameters:
|
||||||
os: '${{ parameters.os }}'
|
os: '${{ parameters.os }}'
|
||||||
arch: 'Lagom'
|
arch: 'Lagom'
|
||||||
toolchain: 'gcc'
|
toolchain: '$(toolchain)'
|
||||||
build_directory: 'Meta/Lagom/Build'
|
build_directory: 'Meta/Lagom/Build'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
mkdir -p Meta/Lagom/Build
|
mkdir -p Meta/Lagom/Build
|
||||||
displayName: 'Create Build Directory'
|
displayName: 'Create Build Directory'
|
||||||
|
|
||||||
|
- ${{ if eq(parameters.fuzzer, 'Fuzz') }}:
|
||||||
|
- script: |
|
||||||
|
cmake -GNinja \
|
||||||
|
-DBUILD_LAGOM=ON \
|
||||||
|
-DENABLE_LAGOM_CCACHE=ON \
|
||||||
|
-DENABLE_FUZZER_SANITIZER=ON \
|
||||||
|
-DENABLE_ADDRESS_SANITIZER=ON \
|
||||||
|
-DENABLE_PCI_IDS_DOWNLOAD=OFF \
|
||||||
|
-DENABLE_USB_IDS_DOWNLOAD=OFF \
|
||||||
|
-DCMAKE_C_COMPILER=clang \
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
|
..
|
||||||
|
displayName: 'Create Build Environment'
|
||||||
|
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom/Build
|
||||||
|
- ${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
|
||||||
- script: |
|
- script: |
|
||||||
cmake -GNinja \
|
cmake -GNinja \
|
||||||
-DBUILD_LAGOM=ON \
|
-DBUILD_LAGOM=ON \
|
||||||
|
@ -57,6 +79,7 @@ jobs:
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom/Build
|
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom/Build
|
||||||
|
|
||||||
|
- ${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
|
||||||
- script: |
|
- script: |
|
||||||
ninja test || ${{ parameters.allow_test_failures }}
|
ninja test || ${{ parameters.allow_test_failures }}
|
||||||
displayName: 'Test'
|
displayName: 'Test'
|
||||||
|
|
|
@ -6,6 +6,11 @@ jobs:
|
||||||
parameters:
|
parameters:
|
||||||
os: 'Linux'
|
os: 'Linux'
|
||||||
|
|
||||||
|
- template: Meta/Azure/Lagom.yml
|
||||||
|
parameters:
|
||||||
|
os: 'Linux'
|
||||||
|
fuzzer: 'Fuzz'
|
||||||
|
|
||||||
- template: Meta/Azure/Lagom.yml
|
- template: Meta/Azure/Lagom.yml
|
||||||
parameters:
|
parameters:
|
||||||
os: 'macOS'
|
os: 'macOS'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue