Skip to content

Commit a9dfac2

Browse files
committed
fix: windows
1 parent 56a74e5 commit a9dfac2

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Diff for: .github/workflows/cortex-cpp-quality-gate.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ 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"
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+
cd engine
64+
cmake -S ./third-party -B ./build_deps
65+
cmake --build ./build_deps --config Release -j4
6466
- name: Setup Perl
6567
if: runner.os == 'Windows'
6668
uses: shogo82148/actions-setup-perl@v1
@@ -125,16 +127,16 @@ jobs:
125127
- name: Build
126128
if: runner.os != 'Linux'
127129
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
130+
# echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
131+
# echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
130132
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
133+
# cmake -S ./third-party -B ./build_deps
134+
# cmake --build ./build_deps --config Release -j4
135+
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"
136+
# mkdir -p build
137+
# cd build
138+
# cmake .. ${{ matrix.cmake-flags }}
139+
# cmake --build . --config Release -j4
138140
139141
- name: Build
140142
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)