From b51ded21015d066dc9e55f5306a2a206d8f93e47 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 2 Feb 2026 16:22:32 +0800 Subject: [PATCH] chore: add lost cd in CI script --- .github/workflows/linux.yml | 2 ++ .github/workflows/macos.yml | 2 ++ .github/workflows/windows.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index fc2d2ab..2f564c6 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -33,6 +33,7 @@ jobs: cd .. cd install echo "GTest_ROOT=$(pwd)" >> "$GITHUB_ENV" + cd .. cd ../.. - name: Fetch Google Benchmark uses: actions/checkout@v4 @@ -55,6 +56,7 @@ jobs: cd .. cd install echo "benchmark_ROOT=$(pwd)" >> "$GITHUB_ENV" + cd .. cd ../.. - name: Build YYCC shell: bash diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9e15239..f6d3dfd 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -28,6 +28,7 @@ jobs: cd .. cd install echo "GTest_ROOT=$(pwd)" >> "$GITHUB_ENV" + cd .. cd ../.. - name: Fetch Google Benchmark uses: actions/checkout@v4 @@ -50,6 +51,7 @@ jobs: cd .. cd install echo "benchmark_ROOT=$(pwd)" >> "$GITHUB_ENV" + cd .. cd ../.. - name: Build YYCC shell: bash diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6ae96c9..a8aae90 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -38,6 +38,7 @@ jobs: :: Idk why I can't use $GITHUB_ENV, so I use this stupid way to do this. :: This is first entry so we override it. echo set GTest_ROOT=%CD% > ../../envs.bat + cd .. cd ../.. - name: Fetch Google Benchmark uses: actions/checkout@v4 @@ -62,6 +63,7 @@ jobs: cd install :: This is second entry so we append it. echo set benchmark_ROOT=%CD% >> ../../envs.bat + cd .. cd ../.. - name: Build YYCC shell: cmd