@@ -3,11 +3,7 @@ name: CI Quality Gate Cortex CPP
33on :
44 pull_request :
55 types : [opened, synchronize, reopened, ready_for_review]
6- paths :
7- [
8- " engine/**" ,
9- " .github/workflows/cortex-cpp-quality-gate.yml"
10- ]
6+ paths : ["engine/**", ".github/workflows/cortex-cpp-quality-gate.yml"]
117 workflow_dispatch :
128
139env :
@@ -27,25 +23,25 @@ jobs:
2723 runs-on : " ubuntu-20-04-cuda-12-0"
2824 cmake-flags : " -DCORTEX_CPP_VERSION=${{github.event.pull_request.head.sha}} -DCMAKE_BUILD_TEST=ON -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
2925 build-deps-cmake-flags : " "
30- ccache-dir : ' '
26+ ccache-dir : " "
3127 - os : " mac"
3228 name : " amd64"
3329 runs-on : " macos-selfhosted-12"
3430 cmake-flags : " -DCORTEX_CPP_VERSION=${{github.event.pull_request.head.sha}} -DCMAKE_BUILD_TEST=ON -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
3531 build-deps-cmake-flags : " "
36- ccache-dir : ' '
32+ ccache-dir : " "
3733 - os : " mac"
3834 name : " arm64"
3935 runs-on : " macos-silicon"
4036 cmake-flags : " -DCORTEX_CPP_VERSION=${{github.event.pull_request.head.sha}} -DCMAKE_BUILD_TEST=ON -DMAC_ARM64=ON -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
4137 build-deps-cmake-flags : " "
42- ccache-dir : ' '
38+ ccache-dir : " "
4339 - os : " windows"
4440 name : " amd64"
4541 runs-on : " windows-cuda-12-0"
4642 cmake-flags : " -DCORTEX_CPP_VERSION=${{github.event.pull_request.head.sha}} -DCMAKE_BUILD_TEST=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
4743 build-deps-cmake-flags : " -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
48- ccache-dir : ' C:\Users\ContainerAdministrator\AppData\Local\ccache'
44+ ccache-dir : ' C:\Users\ContainerAdministrator\AppData\Local\ccache'
4945 steps :
5046 - name : Clone
5147 id : checkout
5652 - name : use python
5753 uses : actions/setup-python@v5
5854 with :
59- python-version : ' 3.10'
55+ python-version : " 3.10"
6056
6157 - name : Install tools on Linux
6258 if : runner.os == 'Linux'
@@ -128,8 +124,7 @@ jobs:
128124 cp build/cortex build/cortex-nightly
129125 cp build/cortex build/cortex-beta
130126 python -m pip install --upgrade pip
131- python -m pip install pytest
132- python -m pip install requests
127+ python -m pip install -r e2e-test/requirements.txt
133128 python e2e-test/main.py
134129 rm build/cortex-nightly
135130 rm build/cortex-beta
@@ -143,8 +138,7 @@ jobs:
143138 cp build/cortex.exe build/cortex-nightly.exe
144139 cp build/cortex.exe build/cortex-beta.exe
145140 python -m pip install --upgrade pip
146- python -m pip install pytest
147- python -m pip install requests
141+ python -m pip install -r e2e-test/requirements.txt
148142 python e2e-test/main.py
149143 rm build/cortex-nightly.exe
150144 rm build/cortex-beta.exe
@@ -155,7 +149,7 @@ jobs:
155149 run : |
156150 cd engine
157151 make pre-package DESTINATION_BINARY_NAME="cortex"
158-
152+
159153 - name : Package
160154 run : |
161155 cd engine
@@ -188,4 +182,4 @@ jobs:
188182 env :
189183 AWS_ACCESS_KEY_ID : " ${{ secrets.MINIO_ACCESS_KEY_ID }}"
190184 AWS_SECRET_ACCESS_KEY : " ${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
191- AWS_DEFAULT_REGION : " ${{ secrets.MINIO_REGION }}"
185+ AWS_DEFAULT_REGION : " ${{ secrets.MINIO_REGION }}"
0 commit comments