Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 584f46b

Browse files
committed
chore: cleanup and CIs update
1 parent 91cb3a9 commit 584f46b

File tree

16 files changed

+160
-218
lines changed

16 files changed

+160
-218
lines changed

.github/workflows/cortex-cpp-quality-gate.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,6 @@ jobs:
9797
AWS_SECRET_ACCESS_KEY: "${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
9898
AWS_DEFAULT_REGION: "${{ secrets.MINIO_REGION }}"
9999

100-
- name: Configure vcpkg
101-
if: runner.os != 'Linux'
102-
run: |
103-
cd engine
104-
make configure-vcpkg
105-
106-
- name: Configure vcpkg linux amd64
107-
if: runner.os != 'Linux'
108-
run: |
109-
cd engine
110-
make configure-vcpkg
111-
112-
- name: Configure vcpkg linux arm64
113-
if: runner.os == 'Linux'
114-
run: |
115-
cd engine
116-
# Set env if arch is arm64
117-
if [ "${{ matrix.name }}" == "arm64" ]; then
118-
sudo apt install ninja-build pkg-config -y
119-
export VCPKG_FORCE_SYSTEM_BINARIES=1
120-
fi
121-
make configure-vcpkg
122-
123100
- name: Build
124101
if: runner.os != 'Linux'
125102
run: |
@@ -405,29 +382,6 @@ jobs:
405382
run: |
406383
choco install make pkgconfiglite ccache awscli 7zip ninja -y
407384
408-
- name: Configure vcpkg
409-
if: runner.os != 'Linux'
410-
run: |
411-
cd engine
412-
make configure-vcpkg
413-
414-
- name: Configure vcpkg linux amd64
415-
if: runner.os != 'Linux'
416-
run: |
417-
cd engine
418-
make configure-vcpkg
419-
420-
- name: Configure vcpkg linux arm64
421-
if: runner.os == 'Linux'
422-
run: |
423-
cd engine
424-
# Set env if arch is arm64
425-
if [ "${{ matrix.name }}" == "arm64" ]; then
426-
sudo apt install ninja-build pkg-config -y
427-
export VCPKG_FORCE_SYSTEM_BINARIES=1
428-
fi
429-
make configure-vcpkg
430-
431385
- name: Build
432386
if: runner.os != 'Linux'
433387
run: |

.github/workflows/template-build-linux.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,6 @@ jobs:
127127
sudo apt update && sudo apt install gettext-base -y
128128
python3 -m pip install awscli
129129
130-
- name: Configure vcpkg
131-
run: |
132-
cd engine
133-
# Set env if arch is arm64
134-
if [ "${{ inputs.arch }}" == "arm64" ]; then
135-
sudo apt install ninja-build pkg-config -y
136-
export VCPKG_FORCE_SYSTEM_BINARIES=1
137-
fi
138-
make configure-vcpkg
139-
140130
- name: Build
141131
run: |
142132
cd engine

.github/workflows/template-build-macos.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ jobs:
139139
140140
- name: Install jq
141141
uses: dcarbone/install-jq-action@v2.0.1
142-
143-
- name: Configure vcpkg
144-
run: |
145-
cd engine
146-
make configure-vcpkg
147142

148143
- name: Build
149144
run: |

.github/workflows/template-build-windows-x64.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ jobs:
156156
AWS_SECRET_ACCESS_KEY: "${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
157157
AWS_DEFAULT_REGION: "${{ secrets.MINIO_REGION }}"
158158

159-
- name: Configure vcpkg
160-
shell: cmd
161-
run: |
162-
cd engine
163-
make configure-vcpkg
164-
165159
- name: Build
166160
run: |
167161
cd engine

.github/workflows/test-cortexso-model-hub.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ jobs:
4545
AWS_SECRET_ACCESS_KEY: "${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
4646
AWS_DEFAULT_REGION: "${{ secrets.MINIO_REGION }}"
4747

48-
- name: Configure vcpkg
49-
run: |
50-
cd engine
51-
make configure-vcpkg
52-
5348
- name: Build
5449
run: |
5550
cd engine

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ COPY ./docs/static/openapi/cortex.json /app/docs/static/openapi/cortex.json
5353

5454
# Build project
5555
# Configure vcpkg binary sources
56-
RUN cd engine && make configure-vcpkg && make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=${CORTEX_CPP_VERSION} -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake ${CMAKE_EXTRA_FLAGS}"
56+
RUN cd engine && make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=${CORTEX_CPP_VERSION} -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake ${CMAKE_EXTRA_FLAGS}"
5757

5858
# Stage 3: Runtime
5959
FROM common as runtime

docker/Dockerfile.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ COPY ./docs/static/openapi/cortex.json /app/docs/static/openapi/cortex.json
8383
# Build project
8484
# Configure vcpkg binary sources
8585
RUN export VCPKG_BINARY_SOURCES="files,${LOCAL_CACHE_DIR},readwrite;default"; \
86-
cd engine && make configure-vcpkg && make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=${CORTEX_CPP_VERSION} -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake ${CMAKE_EXTRA_FLAGS}"
86+
cd engine && make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=${CORTEX_CPP_VERSION} -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake ${CMAKE_EXTRA_FLAGS}"
8787

8888
# Upload updated cache to MinIO (if remote cache is provided)
8989
RUN if [ -n "${REMOTE_CACHE_URL}" ]; then \

docs/docs/installation/linux.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ sudo /usr/bin/cortex-uninstall.sh
9191

9292
```bash
9393
cd engine
94-
make configure-vcpkg
9594
make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=$(git rev-parse HEAD) -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
9695
```
9796

docs/docs/installation/mac.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,12 @@ The script requires sudo permission.
9090
<TabItem value="Mac Silicon" label="Mac Silicon">
9191
```sh
9292
cd engine
93-
make configure-vcpkg
9493
make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=latest -DCMAKE_BUILD_TEST=OFF -DMAC_ARM64=ON -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
9594
```
9695
</TabItem>
9796
<TabItem value="Mac Intel" label="Mac Intel">
9897
```sh
9998
cd engine
100-
make configure-vcpkg
10199
make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=latest -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
102100
```
103101
</TabItem>

docs/docs/installation/windows.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ Follow the [linux installation steps](linux) to install Cortex.cpp on the WSL.
8585

8686
```cmd
8787
cd engine
88-
make configure-vcpkg
8988
make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=latest -DCMAKE_BUILD_TEST=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg\\scripts\\buildsystems\\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -GNinja"
9089
```
9190

0 commit comments

Comments
 (0)