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

Commit 9cbc7b9

Browse files
committed
chore: use self-hosted
1 parent 0761418 commit 9cbc7b9

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

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

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ jobs:
4747
# ccache-dir: ""
4848
- os: "windows"
4949
name: "amd64"
50-
runs-on: "windows-2019"
50+
runs-on: "windows-cuda-12-0"
51+
# runs-on: "windows-2019"
5152
cmake-flags: "-DCORTEX_CPP_VERSION=${{github.event.pull_request.head.sha}} -DCMAKE_BUILD_TEST=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
5253
build-deps-cmake-flags: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
53-
ccache-dir: ""
54+
# ccache-dir: ""
55+
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
56+
5457
steps:
5558
# - name: Set Perl environment variables
5659
# if: runner.os == 'Windows'
@@ -96,18 +99,18 @@ jobs:
9699
run: |
97100
choco install make pkgconfiglite ccache awscli 7zip ninja -y
98101
99-
# - name: Download ccache from s3
100-
# if: runner.os == 'Windows'
101-
# continue-on-error: true
102-
# run: |
103-
# Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
104-
# refreshenv
105-
# aws s3 sync s3://${{ secrets.MINIO_BUCKET_NAME }}/cortex-cpp-${{ matrix.os }}-${{ matrix.name }} ${{ matrix.ccache-dir }} --endpoint ${{ secrets.MINIO_ENDPOINT }}
106-
# aws s3 sync s3://${{ secrets.MINIO_BUCKET_NAME }}/cortex-cpp-vcpkg-windows C:\Users\ContainerAdministrator\AppData\Local\vcpkg --endpoint ${{ secrets.MINIO_ENDPOINT }}
107-
# env:
108-
# AWS_ACCESS_KEY_ID: "${{ secrets.MINIO_ACCESS_KEY_ID }}"
109-
# AWS_SECRET_ACCESS_KEY: "${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
110-
# AWS_DEFAULT_REGION: "${{ secrets.MINIO_REGION }}"
102+
- name: Download ccache from s3
103+
if: runner.os == 'Windows'
104+
continue-on-error: true
105+
run: |
106+
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
107+
refreshenv
108+
aws s3 sync s3://${{ secrets.MINIO_BUCKET_NAME }}/cortex-cpp-${{ matrix.os }}-${{ matrix.name }} ${{ matrix.ccache-dir }} --endpoint ${{ secrets.MINIO_ENDPOINT }}
109+
aws s3 sync s3://${{ secrets.MINIO_BUCKET_NAME }}/cortex-cpp-vcpkg-windows C:\Users\ContainerAdministrator\AppData\Local\vcpkg --endpoint ${{ secrets.MINIO_ENDPOINT }}
110+
env:
111+
AWS_ACCESS_KEY_ID: "${{ secrets.MINIO_ACCESS_KEY_ID }}"
112+
AWS_SECRET_ACCESS_KEY: "${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
113+
AWS_DEFAULT_REGION: "${{ secrets.MINIO_REGION }}"
111114

112115
- name: Download vcpkg cache from s3
113116
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)