1
0

chore: fix github action build issue

This commit is contained in:
2026-01-22 16:35:49 +08:00
parent 6449ae1977
commit aecf9bb8cc
7 changed files with 49 additions and 19 deletions

View File

@@ -16,6 +16,7 @@ jobs:
ref: 'v1.17.0'
path: 'extern/googletest'
- name: Build Google Test
shell: bash
run: |
# Build Google Test
cd extern/googletest
@@ -26,7 +27,7 @@ jobs:
cmake --install . --prefix=../install
cd ..
cd install
export GTest_ROOT=$(pwd)
echo "GTest_ROOT=$(pwd)" >> "$GITHUB_ENV"
cd ../..
- name: Fetch Google Benchmark
uses: actions/checkout@v4
@@ -35,6 +36,7 @@ jobs:
ref: 'v1.9.4'
path: 'extern/benchmark'
- name: Build Google Benchmark
shell: bash
run: |
# Build Google Benchmark
cd extern/benchmark
@@ -47,16 +49,19 @@ jobs:
cmake --install . --prefix=../install
cd ..
cd install
export benchmark_ROOT=$(pwd)
echo "benchmark_ROOT=$(pwd)" >> "$GITHUB_ENV"
cd ../..
- name: Build YYCC
shell: bash
run: |
chmod +x ./.github/macos_build.sh
./.github/macos_build.sh
- name: Run YYCC Test
shell: bash
run: |
./bin/install/bin/YYCCTest
- name: Run YYCC Benchmark
shell: bash
run: |
./bin/install/bin/YYCCBenchmark
- name: Upload Built Artifact