Skip to content

CMake changes that are required for integrating to ORT #36

CMake changes that are required for integrating to ORT

CMake changes that are required for integrating to ORT #36

Workflow file for this run

name: Linux_CI
on:
push:
branches:
- main
- rel-*
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Linux_arm64_gcc_release:
runs-on: ["self-hosted", "1ES.Pool=mlas-linux-ARM64-CPU"]
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_release_workflow
Linux_x64_gcc_ubuntu24_release_no_ort:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_release_no_ort_workflow
Linux_x64_gcc_ubuntu24_release:
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
languages: 'cpp'
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_release_workflow
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
output: sarif-results
upload: failure-only
- name: filter-sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
+**/*.cc
+**/*.h
-tests/**/*.*
-build/**/*.*
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/cpp.sarif
Linux_x64_gcc_ubuntu22_release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_release_workflow
Linux_x64_gcc_ubuntu24_debug:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_debug_workflow
Linux_x64_clang_ubuntu24_debug:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_clang_debug_workflow
Linux_x64_gcc_ubuntu24_debug_asan:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_debug_asan_workflow
Linux_wasm_debug_asan:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
mkdir -p build
cd build
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source emsdk_env.sh
cd ..
CFLAGS="-O0 -g -fsanitize=address" CXXFLAGS="-O0 -g -fsanitize=address" emcmake cmake .. -DCMAKE_BUILD_TYPE=Debug -DMLAS_ENABLE_WEBASSEMBLY_THREADS=ON
make -j $(nproc) all
ctest --output-on-failure
Linux_wasm_release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
mkdir -p build
cd build
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source emsdk_env.sh
cd ..
CFLAGS="-O2 -DNDEBUG -g" CXXFLAGS="-O2 -DNDEBUG -g" emcmake cmake .. -DCMAKE_BUILD_TYPE=Release -DMLAS_ENABLE_WEBASSEMBLY_THREADS=ON
make -j $(nproc) all
ctest --output-on-failure
Linux_wasm_release_no_exception:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
mkdir -p build
cd build
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source emsdk_env.sh
cd ..
CFLAGS="-O2 -DNDEBUG -g" CXXFLAGS="-O2 -DNDEBUG -g" emcmake cmake .. -DCMAKE_BUILD_TYPE=Release -DMLAS_ENABLE_WEBASSEMBLY_THREADS=ON -DMLAS_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING=ON
make -j $(nproc) all
ctest --output-on-failure