diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml index 2778c4bdb..1fb61f8e1 100644 --- a/.github/workflows/analyze.yaml +++ b/.github/workflows/analyze.yaml @@ -1,19 +1,24 @@ name: analyze -on: [push] +on: + push: + branches: + - unstable jobs: build: runs-on: rtx6000-4x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: configure run: | cd lib && ./configure --enable-sm80 --disable-openmp && cd .. - name: analyze run: | - cd lib && scan-build -o ../_analyze --use-cc clang make + cd lib && scan-build -o ../_analyze --use-cc clang make -j 32 - name: upload report run: | cd _analyze FILE=$(ls) - mv $FILE /var/public_html/analyze/$FILE + mv $FILE /var/www/public_html/analyze/$FILE echo "View [$FILE](https://ci.libccv.org/analyze/$FILE)" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index a0be126ea..195021882 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -1,10 +1,15 @@ name: coverage -on: [push] +on: + push: + branches: + - unstable jobs: build: runs-on: rtx6000-4x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: configure & build run: | cd lib && ./configure --enable-sm80 && cd .. @@ -19,5 +24,6 @@ jobs: run: | cd _coverage FILE=$(ls) - mv $FILE /var/public_html/coverage/$FILE + chmod -R go+r $FILE + mv $FILE /var/www/public_html/coverage/$FILE echo "View [$FILE](https://ci.libccv.org/coverage/$FILE)" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/cuda-int-tests.yaml b/.github/workflows/cuda-int-tests.yaml index 755bd9731..48df3a331 100644 --- a/.github/workflows/cuda-int-tests.yaml +++ b/.github/workflows/cuda-int-tests.yaml @@ -1,10 +1,15 @@ name: cuda-int-tests -on: [push] +on: + push: + branches: + - unstable jobs: build: runs-on: rtx6000-4x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: configure & build run: | cd lib && ./configure --enable-sm80 && cd .. diff --git a/.github/workflows/macos-arm-unit-tests.yaml b/.github/workflows/macos-arm-unit-tests.yaml index 5b48f05df..6daa25f2a 100644 --- a/.github/workflows/macos-arm-unit-tests.yaml +++ b/.github/workflows/macos-arm-unit-tests.yaml @@ -4,7 +4,9 @@ jobs: build: runs-on: mac-mini-m2 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: configure & build run: | cd lib && ./configure --enable-mps && cd .. diff --git a/.github/workflows/macos-unit-tests.yaml b/.github/workflows/macos-unit-tests.yaml index 3553d7877..fd48ea77a 100644 --- a/.github/workflows/macos-unit-tests.yaml +++ b/.github/workflows/macos-unit-tests.yaml @@ -4,7 +4,9 @@ jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Install libjpeg and libpng run: | brew install libjpeg libpng diff --git a/.github/workflows/raspberrypi-4-unit-tests.yaml b/.github/workflows/raspberrypi-4-unit-tests.yaml index ab9dde048..160c60fe3 100644 --- a/.github/workflows/raspberrypi-4-unit-tests.yaml +++ b/.github/workflows/raspberrypi-4-unit-tests.yaml @@ -4,7 +4,9 @@ jobs: build: runs-on: raspberrypi-4 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: configure & build run: | cd lib && ./configure --enable-neon --with-arch=armv7 && cd .. diff --git a/.github/workflows/ubsan-unit-tests.yaml b/.github/workflows/ubsan-unit-tests.yaml index 21cb5b7de..b6fffe4cd 100644 --- a/.github/workflows/ubsan-unit-tests.yaml +++ b/.github/workflows/ubsan-unit-tests.yaml @@ -1,10 +1,15 @@ name: ubsan-unit-tests -on: [push] +on: + push: + branches: + - unstable jobs: build: runs-on: rtx6000-4x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: configure & build run: | cd lib && ./configure --enable-sm80 && cd .. diff --git a/.github/workflows/ubuntu-unit-tests.yaml b/.github/workflows/ubuntu-unit-tests.yaml index 8ad7d4c6f..25cbc41b4 100644 --- a/.github/workflows/ubuntu-unit-tests.yaml +++ b/.github/workflows/ubuntu-unit-tests.yaml @@ -4,7 +4,9 @@ jobs: build: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - run: sudo apt -y install libpng-dev libjpeg-dev libatlas-base-dev libblas-dev libgsl-dev clang - run: | cd lib && ./configure --disable-openmp && cd .. diff --git a/README.rst b/README.rst index 4245f390a..1e3297a87 100644 --- a/README.rst +++ b/README.rst @@ -5,6 +5,8 @@ Build Status - Linux x64: |Build Status on Linux| |Build Status on Linux CUDA| - Mac ARM64: |Build Status on Mac ARM64| - Raspberry Pi 4: |Build Status on Raspberry Pi 4| +- Clang Analyzer: |Analyze Run| +- Test Coverage: |Coverage Run| Backstory --------- @@ -44,11 +46,15 @@ ccv's data models and documentations are distributed under Creative Commons Attr :target: https://github.com/liuliu/ccv/actions/workflows/ubuntu-unit-tests.yaml?query=branch%3Aunstable .. |Build Status on GitHub macOS| image:: https://github.com/liuliu/ccv/actions/workflows/macos-unit-tests.yaml/badge.svg?branch=unstable :target: https://github.com/liuliu/ccv/actions/workflows/macos-unit-tests.yaml?query=branch%3Aunstable -.. |Build Status on Linux| image:: https://github.com/liuliu/ccv/actions/workflows/undef-unit-tests.yaml/badge.svg?branch=unstable - :target: https://github.com/liuliu/ccv/actions/workflows/undef-unit-tests.yaml?query=branch%3Aunstable +.. |Build Status on Linux| image:: https://github.com/liuliu/ccv/actions/workflows/ubsan-unit-tests.yaml/badge.svg?branch=unstable + :target: https://github.com/liuliu/ccv/actions/workflows/ubsan-unit-tests.yaml?query=branch%3Aunstable .. |Build Status on Linux CUDA| image:: https://github.com/liuliu/ccv/actions/workflows/cuda-int-tests.yaml/badge.svg?branch=unstable :target: https://github.com/liuliu/ccv/actions/workflows/cuda-int-tests.yaml?query=branch%3Aunstable .. |Build Status on Mac ARM64| image:: https://github.com/liuliu/ccv/actions/workflows/macos-arm-unit-tests.yaml/badge.svg?branch=unstable :target: https://github.com/liuliu/ccv/actions/workflows/macos-arm-unit-tests.yaml?query=branch%3Aunstable .. |Build Status on Raspberry Pi 4| image:: https://github.com/liuliu/ccv/actions/workflows/raspberrypi-4-unit-tests.yaml/badge.svg?branch=unstable :target: https://github.com/liuliu/ccv/actions/workflows/raspberrypi-4-unit-tests.yaml?query=branch%3Aunstable +.. |Analyze Run| image:: https://github.com/liuliu/ccv/actions/workflows/analyze.yaml/badge.svg?branch=unstable + :target: https://github.com/liuliu/ccv/actions/workflows/analyze.yaml?query=branch%3Aunstable +.. |Coverage Run| image:: https://github.com/liuliu/ccv/actions/workflows/coverage.yaml/badge.svg?branch=unstable + :target: https://github.com/liuliu/ccv/actions/workflows/coverage.yaml?query=branch%3Aunstable