chore: fix github action build issue
This commit is contained in:
9
.github/workflows/macos.yml
vendored
9
.github/workflows/macos.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user