Skip to content

Commit

Permalink
fix: ci github ratelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh committed Nov 7, 2024
1 parent 086de70 commit e8ef042
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/cortex-cpp-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,24 @@ jobs:
cd engine
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"
- name: Run setup config for macos
if: runner.os == 'macOS'
run: |
cd engine
./build/cortex --version
sed -i '' 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
sed -i '' "s/^gitHubToken.*/gitHubToken: \"${{ secrets.HUGGINGFACE_TOKEN_READ }}\"/" ~//.cortexrc
- name: Run setup config for linux and Windows
if: runner.os != 'macOS'
shell: bash
run: |
cd engine
./build/cortex --version
sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
sed -i '/^gitHubToken/c\gitHubToken: "${{ secrets.GITHUB_TOKEN }}"' ~/.cortexrc
- name: Run unit tests
run: |
cd engine
Expand All @@ -108,14 +126,16 @@ jobs:
cd engine
./build/cortex --version
sed -i '' 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
sed -i '' "s/^gitHubToken.*/gitHubToken: \"${{ secrets.HUGGINGFACE_TOKEN_READ }}\"/" ~//.cortexrc
- name: Run setup config for linux
- name: Run setup config for linux and Windows
if: runner.os != 'macOS'
shell: bash
run: |
cd engine
./build/cortex --version
sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
sed -i '/^gitHubToken/c\gitHubToken: "${{ secrets.GITHUB_TOKEN }}"' ~/.cortexrc
- name: Run e2e tests
if: runner.os != 'Windows' && github.event.pull_request.draft == false
Expand Down

0 comments on commit e8ef042

Please sign in to comment.