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

Commit 23952d3

Browse files
committed
fix: windows
1 parent 56a74e5 commit 23952d3

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,21 @@ 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"
6458
- name: Setup Perl
6559
if: runner.os == 'Windows'
6660
uses: shogo82148/actions-setup-perl@v1
6761
with:
6862
perl-version: "5.38"
6963
distribution: strawberry
64+
65+
- name: Set Perl environment variables
66+
if: runner.os == 'Windows'
67+
run: |
68+
echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
69+
echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
70+
cd engine
71+
cmake -S ./third-party -B ./build_deps
72+
cmake --build ./build_deps --config Release -j4
7073
# - name: perl -V
7174
# run: perl -V
7275
# - name: Ensure we have a working toolchain
@@ -125,16 +128,16 @@ jobs:
125128
- name: Build
126129
if: runner.os != 'Linux'
127130
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
131+
# echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
132+
# echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
130133
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
134+
# cmake -S ./third-party -B ./build_deps
135+
# cmake --build ./build_deps --config Release -j4
136+
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"
137+
# mkdir -p build
138+
# cd build
139+
# cmake .. ${{ matrix.cmake-flags }}
140+
# cmake --build . --config Release -j4
138141
139142
- name: Build
140143
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)