This commit is contained in:
blueloveTH 2024-06-11 12:54:54 +08:00
parent 6a70f535b3
commit 2fd92764fd

View File

@ -54,18 +54,19 @@ jobs:
platform: x64 platform: x64
- name: Install libc++ - name: Install libc++
run: sudo apt-get install -y libc++-15-dev libc++1-15 libc++abi-15-dev libc++abi1-15 libclang-rt-15-dev run: sudo apt-get install -y libc++-15-dev libc++1-15 libc++abi-15-dev libc++abi1-15 libclang-rt-15-dev
- name: Unit Test with Coverage # - name: Unit Test with Coverage
run: bash run_tests.sh # run: bash run_tests.sh
- name: Upload coverage reports to Codecov # - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4 # uses: codecov/codecov-action@v4
with: # with:
token: ${{ secrets.CODECOV_TOKEN }} # token: ${{ secrets.CODECOV_TOKEN }}
directory: .coverage # directory: .coverage
if: github.ref == 'refs/heads/main' # if: github.ref == 'refs/heads/main'
- name: Compile - name: Compile and Test
run: | run: |
mkdir -p output/x86_64 mkdir -p output/x86_64
python cmake_build.py python cmake_build.py
python scripts/run_tests.py
cp main output/x86_64 cp main output/x86_64
cp libpocketpy.so output/x86_64 cp libpocketpy.so output/x86_64
env: env: