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

Commit 18b76ea

Browse files
committed
fix: windows
1 parent 56a74e5 commit 18b76ea

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

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

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ jobs:
5555
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
5656

5757
steps:
58-
# - name: Set Perl environment variables
59-
# if: runner.os == 'Windows'
60-
# run: |
61-
# echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
62-
# echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
63-
# perl -MCPAN -e "install Locale::Maketext::Simple"
64-
- name: Setup Perl
65-
if: runner.os == 'Windows'
66-
uses: shogo82148/actions-setup-perl@v1
67-
with:
68-
perl-version: "5.38"
69-
distribution: strawberry
7058
# - name: perl -V
7159
# run: perl -V
7260
# - name: Ensure we have a working toolchain
@@ -83,6 +71,22 @@ jobs:
8371
with:
8472
submodules: recursive
8573

74+
- name: Setup Perl
75+
if: runner.os == 'Windows'
76+
uses: shogo82148/actions-setup-perl@v1
77+
with:
78+
perl-version: "5.38"
79+
distribution: strawberry
80+
81+
- name: Set Perl environment variables
82+
if: runner.os == 'Windows'
83+
run: |
84+
echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
85+
# echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
86+
cd engine
87+
cmake -S ./third-party -B ./build_deps
88+
cmake --build ./build_deps --config Release -j4
89+
8690
- name: use python
8791
continue-on-error: true
8892
uses: actions/setup-python@v5
@@ -125,16 +129,16 @@ jobs:
125129
- name: Build
126130
if: runner.os != 'Linux'
127131
run: |
128-
echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
129-
echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
132+
# echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
133+
# echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
130134
cd engine
131-
cmake -S ./third-party -B ./build_deps
132-
cmake --build ./build_deps --config Release -j4
133-
# make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"
134-
mkdir -p build
135-
cd build
136-
cmake .. ${{ matrix.cmake-flags }}
137-
cmake --build . --config Release -j4
135+
# cmake -S ./third-party -B ./build_deps
136+
# cmake --build ./build_deps --config Release -j4
137+
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"
138+
# mkdir -p build
139+
# cd build
140+
# cmake .. ${{ matrix.cmake-flags }}
141+
# cmake --build . --config Release -j4
138142
139143
- name: Build
140144
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)